diff options
author | nate <nate@FreeBSD.org> | 1997-10-26 21:08:42 +0000 |
---|---|---|
committer | nate <nate@FreeBSD.org> | 1997-10-26 21:08:42 +0000 |
commit | fa55951ed537b4c4f68482e66fc7123eab0cf3fc (patch) | |
tree | 0439bf497279cd9e48c661b7d3e61a65cd486efb /sys/dev/fe | |
parent | c76c50d092e899d58a0c957da71951be8e875d62 (diff) | |
download | FreeBSD-src-fa55951ed537b4c4f68482e66fc7123eab0cf3fc.zip FreeBSD-src-fa55951ed537b4c4f68482e66fc7123eab0cf3fc.tar.gz |
- Instead of relying on a functional call to register PCARD-capable drivers,
use a Linker Set. Note, if a driver is loaded as an LKM if will have
to use the function call, but since none of the existing drivers
are loadable, this made things cleaner and boot messages nicer.
Obtained from: PAO-970616
Diffstat (limited to 'sys/dev/fe')
-rw-r--r-- | sys/dev/fe/if_fe.c | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/sys/dev/fe/if_fe.c b/sys/dev/fe/if_fe.c index 41d10ed..a41e4bc 100644 --- a/sys/dev/fe/if_fe.c +++ b/sys/dev/fe/if_fe.c @@ -21,7 +21,7 @@ */ /* - * $Id: if_fe.c,v 1.29 1997/07/20 14:09:59 bde Exp $ + * $Id: if_fe.c,v 1.31 1997/10/26 04:53:54 nate Exp $ * * Device driver for Fujitsu MB86960A/MB86965A based Ethernet cards. * To be used with FreeBSD 2.x @@ -336,6 +336,8 @@ static struct pccard_device fe_info = { /* XXX - Should this also include net_imask? */ }; +DATA_SET(pccarddrv_set, fe_info); + /* * Initialize the device - called from Slot manager. */ @@ -451,9 +453,6 @@ static struct fe_probe_list const fe_probe_list [] = static int fe_probe ( DEVICE * dev ) { -#if NCARD > 0 - static int fe_already_init; -#endif struct fe_softc * sc; int u; int nports; @@ -465,17 +464,6 @@ fe_probe ( DEVICE * dev ) sc = &fe_softc[ dev->id_unit ]; sc->sc_unit = dev->id_unit; -#if NCARD > 0 - /* - * If PC-Card probe required, then register driver with - * slot manager. - */ - if (fe_already_init != 1) { - pccard_add_driver(&fe_info); - fe_already_init = 1; - } -#endif - /* Probe each possibility, one at a time. */ for ( list = fe_probe_list; list->probe != NULL; list++ ) { |