diff options
author | wpaul <wpaul@FreeBSD.org> | 2000-10-13 22:04:20 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 2000-10-13 22:04:20 +0000 |
commit | 203b4ae935cb0ac4e62b1018a6386f5b919abae2 (patch) | |
tree | b9499de91dcf7bcf7758b643ec8da3f108697241 | |
parent | 8c6ec068a999f6244259ddb917ee683cf10a010b (diff) | |
download | FreeBSD-src-203b4ae935cb0ac4e62b1018a6386f5b919abae2.zip FreeBSD-src-203b4ae935cb0ac4e62b1018a6386f5b919abae2.tar.gz |
Remember to assign an_dev to device_t before calling an_attach().
-rw-r--r-- | sys/dev/an/if_an_isa.c | 6 | ||||
-rw-r--r-- | sys/dev/an/if_an_pccard.c | 6 | ||||
-rw-r--r-- | sys/dev/an/if_an_pci.c | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/sys/dev/an/if_an_isa.c b/sys/dev/an/if_an_isa.c index 2d78fcb..29e6c28 100644 --- a/sys/dev/an/if_an_isa.c +++ b/sys/dev/an/if_an_isa.c @@ -70,6 +70,11 @@ #include <dev/an/if_aironet_ieee.h> #include <dev/an/if_anreg.h> +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + static struct isa_pnp_id an_ids[] = { { 0x0100ec06, "Aironet ISA4500/ISA4800" }, { 0, NULL } @@ -120,6 +125,7 @@ an_attach_isa(dev) sc->an_bhandle = rman_get_bushandle(sc->port_res); sc->an_btag = rman_get_bustag(sc->port_res); + sc->an_dev = dev; return an_attach(sc, device_get_unit(dev), flags); } diff --git a/sys/dev/an/if_an_pccard.c b/sys/dev/an/if_an_pccard.c index cfcd4b1..551bad8 100644 --- a/sys/dev/an/if_an_pccard.c +++ b/sys/dev/an/if_an_pccard.c @@ -64,6 +64,11 @@ #include <net/if_dl.h> #include <net/if_types.h> +#ifndef lint +static const char rcsid[] = + "$FreeBSD$"; +#endif + #include <dev/an/if_aironet_ieee.h> #include <dev/an/if_anreg.h> @@ -149,6 +154,7 @@ an_pccard_attach(device_t dev) sc->an_bhandle = rman_get_bushandle(sc->port_res); sc->an_btag = rman_get_bustag(sc->port_res); + sc->an_dev = dev; error = an_attach(sc, device_get_unit(dev), flags); return (error); diff --git a/sys/dev/an/if_an_pci.c b/sys/dev/an/if_an_pci.c index cab379f..22a0443 100644 --- a/sys/dev/an/if_an_pci.c +++ b/sys/dev/an/if_an_pci.c @@ -181,6 +181,7 @@ static int an_attach_pci(dev) goto fail; } + sc->an_dev = dev; error = an_attach(sc, device_get_unit(dev), flags); fail: |