From: Sepherosa Ziehau Date: Sun, 18 Dec 2005 12:02:15 +0000 (+0000) Subject: After bus/pci/pcivar.h rev1.10, pcib_get_bus() should be called with device's X-Git-Tag: v2.0.1~5487 X-Git-Url: https://gitweb.dragonflybsd.org/~tuxillo/dragonfly.git/commitdiff_plain/2f82e19e2342cf5e28eeb427c2c13c34e42cebea After bus/pci/pcivar.h rev1.10, pcib_get_bus() should be called with device's parent not device itself --- diff --git a/sys/dev/pccard/cardbus/cardbus.c b/sys/dev/pccard/cardbus/cardbus.c index 3a5ef3d253..e26554e395 100644 --- a/sys/dev/pccard/cardbus/cardbus.c +++ b/sys/dev/pccard/cardbus/cardbus.c @@ -26,7 +26,7 @@ * SUCH DAMAGE. * * $FreeBSD: src/sys/dev/cardbus/cardbus.c,v 1.28 2002/11/27 17:30:41 imp Exp $ - * $DragonFly: src/sys/dev/pccard/cardbus/cardbus.c,v 1.5 2005/05/24 20:59:03 dillon Exp $ + * $DragonFly: src/sys/dev/pccard/cardbus/cardbus.c,v 1.6 2005/12/18 12:02:15 sephe Exp $ */ /* @@ -222,7 +222,7 @@ cardbus_attach_card(device_t cbdev) cardbus_detach_card(cbdev); /* detach existing cards */ POWER_ENABLE_SOCKET(brdev, cbdev); - bus = pcib_get_bus(cbdev); + bus = pcib_get_bus(brdev); if (bus == 0) { /* * XXX EVILE BAD XXX