summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoriedowse <iedowse@FreeBSD.org>2001-03-18 17:44:23 +0000
committeriedowse <iedowse@FreeBSD.org>2001-03-18 17:44:23 +0000
commited068b4a280285450a9d589f8e6b1c8bffdc8b9a (patch)
tree82ed12909a5b72840ad9874f06e299f25ba066b4
parent267099bf5a83feb939591af9fe73944847efe11c (diff)
downloadFreeBSD-src-ed068b4a280285450a9d589f8e6b1c8bffdc8b9a.zip
FreeBSD-src-ed068b4a280285450a9d589f8e6b1c8bffdc8b9a.tar.gz
Use a module name of 'if_lnc' in both the PCI and ISA sections of
the driver. Doing this breaks the ability to unload the unneeded parts of the driver (e.g unload the PCI section when using an ISA card), but currently ifconfig(8) expects an interface `XXX' to have a driver name of `if_XXX'. PR: kern/25582 Submitted by: Alexander N. Kabaev <kabaev@mail.ru>, imp (apparently Warner suggested a similar fix some time ago). Reviewed by: paul (who would prefer to see ifconfig changed instead)
-rw-r--r--sys/dev/lnc/if_lnc_isa.c2
-rw-r--r--sys/dev/lnc/if_lnc_pci.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/lnc/if_lnc_isa.c b/sys/dev/lnc/if_lnc_isa.c
index 29dc39a..a82ff5a 100644
--- a/sys/dev/lnc/if_lnc_isa.c
+++ b/sys/dev/lnc/if_lnc_isa.c
@@ -310,4 +310,4 @@ static driver_t lnc_isa_driver = {
sizeof(struct lnc_softc),
};
-DRIVER_MODULE(lnc_isa, isa, lnc_isa_driver, lnc_devclass, 0, 0);
+DRIVER_MODULE(if_lnc, isa, lnc_isa_driver, lnc_devclass, 0, 0);
diff --git a/sys/dev/lnc/if_lnc_pci.c b/sys/dev/lnc/if_lnc_pci.c
index 6c8b05a..e19a756 100644
--- a/sys/dev/lnc/if_lnc_pci.c
+++ b/sys/dev/lnc/if_lnc_pci.c
@@ -223,4 +223,4 @@ static driver_t lnc_pci_driver = {
sizeof(struct lnc_softc),
};
-DRIVER_MODULE(lnc_pci, pci, lnc_pci_driver, lnc_devclass, 0, 0);
+DRIVER_MODULE(if_lnc, pci, lnc_pci_driver, lnc_devclass, 0, 0);
OpenPOWER on IntegriCloud