aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-05-10 07:08:03 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-05-10 07:08:03 +0000
commit5532b9f61ee28da5d17ad8de852f451f26288917 (patch)
tree82ab234b3e83517f83431ee89082fe2f43ed0f3f /sys
parentf40d7afa05430a19cb70b2f2a35b7a0e89451417 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/alpha/tlsb/tlsb.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/alpha/tlsb/tlsb.c b/sys/alpha/tlsb/tlsb.c
index c8fd6fa2b3b5..ea4ff54afe2d 100644
--- a/sys/alpha/tlsb/tlsb.c
+++ b/sys/alpha/tlsb/tlsb.c
@@ -210,7 +210,8 @@ tlsb_setup_intr(device_t dev, device_t child, struct resource *i, int f,
tlsb0_softc->zsc_intr = intr;
tlsb0_softc->zsc_arg = arg;
return (0);
- } else if (strncmp(device_get_name(child), "dwlpx", 5) == 0) {
+ } else if (strncmp(device_get_name(device_get_parent(child)), "kft", 3)
+ == 0) {
if (tlsb0_softc->sub_intr == NULL)
tlsb0_softc->sub_intr = intr;
return (0);
@@ -225,7 +226,8 @@ tlsb_teardown_intr(device_t dev, device_t child, struct resource *i, void *c)
if (strncmp(device_get_name(child), "zsc", 3) == 0) {
tlsb0_softc->zsc_intr = NULL;
return (0);
- } else if (strncmp(device_get_name(dev), "dwlpx", 5) == 0) {
+ } else if (strncmp(device_get_name(device_get_parent(child)), "kft", 3)
+ == 0) {
tlsb0_softc->sub_intr = NULL;
return (0);
} else {