aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/an/if_an_isa.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2009-11-06 18:28:13 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2009-11-06 18:28:13 +0000
commit775a636b110849b9d9ec3c5afb6a81df9353acab (patch)
treedb0de72f98b46000531c78281aaa2bc3d8dc6e78 /sys/dev/an/if_an_isa.c
parent287e3cb475a17d3cfa9e9d0435bbb58532f286cd (diff)
downloadsrc-775a636b110849b9d9ec3c5afb6a81df9353acab.tar.gz
src-775a636b110849b9d9ec3c5afb6a81df9353acab.zip
- Use device_printf() instead of printf() with an explicit unit number
in the PCI attach routine. - Simplify PCI probe. - Remove no-longer-used 'unit' from an_attach() parameters. PR: kern/126924 Submitted by: gavin
Notes
Notes: svn path=/head/; revision=198995
Diffstat (limited to 'sys/dev/an/if_an_isa.c')
-rw-r--r--sys/dev/an/if_an_isa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/an/if_an_isa.c b/sys/dev/an/if_an_isa.c
index 80933b18ada1..5c1f0eb8770a 100644
--- a/sys/dev/an/if_an_isa.c
+++ b/sys/dev/an/if_an_isa.c
@@ -115,7 +115,7 @@ an_attach_isa(device_t dev)
sc->an_btag = rman_get_bustag(sc->port_res);
sc->an_dev = dev;
- error = an_attach(sc, device_get_unit(dev), flags);
+ error = an_attach(sc, flags);
if (error) {
an_release_resources(dev);
return (error);