summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/if_ed.c
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1997-10-26 21:08:42 +0000
committernate <nate@FreeBSD.org>1997-10-26 21:08:42 +0000
commitfa55951ed537b4c4f68482e66fc7123eab0cf3fc (patch)
tree0439bf497279cd9e48c661b7d3e61a65cd486efb /sys/i386/isa/if_ed.c
parentc76c50d092e899d58a0c957da71951be8e875d62 (diff)
downloadFreeBSD-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/i386/isa/if_ed.c')
-rw-r--r--sys/i386/isa/if_ed.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/sys/i386/isa/if_ed.c b/sys/i386/isa/if_ed.c
index 83e16bc..72871d8 100644
--- a/sys/i386/isa/if_ed.c
+++ b/sys/i386/isa/if_ed.c
@@ -24,7 +24,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: if_ed.c,v 1.122 1997/10/03 16:26:15 davidg Exp $
+ * $Id: if_ed.c,v 1.124 1997/10/26 04:53:51 nate Exp $
*/
/*
@@ -205,6 +205,8 @@ static struct pccard_device ed_info = {
/* XXX - Should this also include net_imask? */
};
+DATA_SET(pccarddrv_set, ed_info);
+
/*
* Initialize the device - called from Slot manager.
*/
@@ -340,14 +342,6 @@ ed_probe(isa_dev)
{
int nports;
-#if NCARD > 0
- /*
- * If PC-Card probe required, then register driver with
- * slot manager.
- */
- pccard_add_driver(&ed_info);
-#endif
-
nports = ed_probe_WD80x3(isa_dev);
if (nports)
return (nports);
OpenPOWER on IntegriCloud