summaryrefslogtreecommitdiffstats
path: root/sys/i4b
diff options
context:
space:
mode:
authorgj <gj@FreeBSD.org>2001-12-29 17:19:25 +0000
committergj <gj@FreeBSD.org>2001-12-29 17:19:25 +0000
commitef6370195bb01db7d0549e9f701ac500fb5b2332 (patch)
treeb9fb05ad8198a687bf9a5af8803a66479d18ca7d /sys/i4b
parent1951cbf9ee9ef201bc9b03b589043ff19ba6ae89 (diff)
downloadFreeBSD-src-ef6370195bb01db7d0549e9f701ac500fb5b2332.zip
FreeBSD-src-ef6370195bb01db7d0549e9f701ac500fb5b2332.tar.gz
Fix an error which could cause a panic if both an ifpi and ifpi2 controller
were installed. For the ifpi2, change the string in the driver_t from "ifpi2" to "ifpi2-" so that one sees "ifpi2-0" instead of "ifpi20" at boot time.
Diffstat (limited to 'sys/i4b')
-rw-r--r--sys/i4b/layer1/ifpi/i4b_ifpi_pci.c4
-rw-r--r--sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c6
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c
index d14deb4..9244bda 100644
--- a/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c
+++ b/sys/i4b/layer1/ifpi/i4b_ifpi_pci.c
@@ -1291,8 +1291,8 @@ avma1pp_init_linktab(struct l1_softc *sc)
/* avoid overwriting if already set */
if (ctrl_types[CTRL_PASSIVE].set_linktab == NULL)
{
- ctrl_types[CTRL_PASSIVE].set_linktab = avma1pp_set_linktab;
- ctrl_types[CTRL_PASSIVE].get_linktab = avma1pp_ret_linktab;
+ ctrl_types[CTRL_PASSIVE].set_linktab = i4b_l1_set_linktab;
+ ctrl_types[CTRL_PASSIVE].get_linktab = i4b_l1_ret_linktab;
}
/* local setup */
diff --git a/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c b/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c
index bbad26f..6ce760e5 100644
--- a/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c
+++ b/sys/i4b/layer1/ifpi2/i4b_ifpi2_pci.c
@@ -116,7 +116,7 @@ static device_method_t avma1pp2_pci_methods[] = {
};
static driver_t avma1pp2_pci_driver = {
- "ifpi2",
+ "ifpi2-",
avma1pp2_pci_methods,
sizeof(struct l1_softc)
};
@@ -1224,8 +1224,8 @@ avma1pp2_init_linktab(struct l1_softc *sc)
/* avoid overwriting if already set */
if (ctrl_types[CTRL_PASSIVE].set_linktab == NULL)
{
- ctrl_types[CTRL_PASSIVE].set_linktab = avma1pp2_set_linktab;
- ctrl_types[CTRL_PASSIVE].get_linktab = avma1pp2_ret_linktab;
+ ctrl_types[CTRL_PASSIVE].set_linktab = i4b_l1_set_linktab;
+ ctrl_types[CTRL_PASSIVE].get_linktab = i4b_l1_ret_linktab;
}
/* local setup */
OpenPOWER on IntegriCloud