summaryrefslogtreecommitdiffstats
path: root/sys/dev/snc
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-06-12 15:25:19 +0000
committerscottl <scottl@FreeBSD.org>2005-06-12 15:25:19 +0000
commit1e38a48400a5798ecc29c2b7edf9d0a83f08a5f5 (patch)
treed48bda144bed4d69a90dba2f6013d34eedcc7830 /sys/dev/snc
parent1ad4fd1131b259aaa193c0327523606b8e812288 (diff)
downloadFreeBSD-src-1e38a48400a5798ecc29c2b7edf9d0a83f08a5f5.zip
FreeBSD-src-1e38a48400a5798ecc29c2b7edf9d0a83f08a5f5.tar.gz
change 'dev' to 'sc->sc_dev' to fix the build.
Approved: re (implicit)
Diffstat (limited to 'sys/dev/snc')
-rw-r--r--sys/dev/snc/dp83932.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/snc/dp83932.c b/sys/dev/snc/dp83932.c
index 23fea5e..c32004b 100644
--- a/sys/dev/snc/dp83932.c
+++ b/sys/dev/snc/dp83932.c
@@ -166,7 +166,8 @@ sncconfig(sc, media, nmedia, defmedia, myea)
ifp = sc->sc_ifp = if_alloc(IFT_ETHER);
if (ifp == NULL)
- panic("%s: can not if_alloc()\n", device_get_nameunit(dev));
+ panic("%s: can not if_alloc()\n",
+ device_get_nameunit(sc->sc_dev));
#ifdef SNCDEBUG
device_printf(sc->sc_dev,
OpenPOWER on IntegriCloud