diff options
| author | Bill Paul <wpaul@FreeBSD.org> | 2000-10-13 21:58:36 +0000 |
|---|---|---|
| committer | Bill Paul <wpaul@FreeBSD.org> | 2000-10-13 21:58:36 +0000 |
| commit | 736f03e49aca915707d1884ff4e8eb8b295fe937 (patch) | |
| tree | 14dcaf0a3067d1a92014cde48e0ac72cac446d7a /sys/dev/an/if_an_pci.c | |
| parent | 16a011f9731d62c11f5791c27539da9ec143473e (diff) | |
Notes
Diffstat (limited to 'sys/dev/an/if_an_pci.c')
| -rw-r--r-- | sys/dev/an/if_an_pci.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c index 468a5bcd12a35..cab379f2d6b7c 100644 --- a/sys/dev/an/if_an_pci.c +++ b/sys/dev/an/if_an_pci.c @@ -69,6 +69,7 @@ #include <sys/bus.h> #include <machine/bus.h> #include <sys/rman.h> +#include <machine/mutex.h> #include <machine/resource.h> #include <net/if.h> @@ -132,13 +133,10 @@ static int an_probe_pci(device_t dev) static int an_attach_pci(dev) device_t dev; { - int s; u_int32_t command; struct an_softc *sc; int unit, flags, error = 0; - s = splimp(); - sc = device_get_softc(dev); unit = device_get_unit(dev); flags = device_get_flags(dev); @@ -186,8 +184,6 @@ static int an_attach_pci(dev) error = an_attach(sc, device_get_unit(dev), flags); fail: - splx(s); - return(error); } |
