From a9f3e2fac8271170f007680c9f17e5f741bdc21d Mon Sep 17 00:00:00 2001 From: mjacob Date: Thu, 10 May 2001 07:08:03 +0000 Subject: The new order of things is that dwlpxN is now called pcibN- so hack around *that* whilst we ponder the best way to decide how to register dwlpx interrupts with TLSB. --- sys/alpha/tlsb/tlsb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/alpha/tlsb/tlsb.c b/sys/alpha/tlsb/tlsb.c index c8fd6fa..ea4ff54 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 { -- cgit v1.1