From: Hauke Mehrtens Date: Tue, 31 Jan 2012 23:13:53 +0000 (+0100) Subject: ssb: fix cardbus slot in hostmode X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a6c84622b7fa3ea5417a9d1d0ce0bc3e7fbe3be1;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git ssb: fix cardbus slot in hostmode ssb supports one extra device on the cardbus. This results in two devices in total, one beeing the host controller itself and the other the external device connected to the hostcontroller over cardbus. This makes the cardbus slot work on the Linksys WRT150N. Reported-by: Aaron Z Signed-off-by: Hauke Mehrtens Signed-off-by: John W. Linville --- diff --git a/drivers/ssb/driver_pcicore.c b/drivers/ssb/driver_pcicore.c index 520e8286db28..49d209173f55 100644 --- a/drivers/ssb/driver_pcicore.c +++ b/drivers/ssb/driver_pcicore.c @@ -75,7 +75,7 @@ static u32 get_cfgspace_addr(struct ssb_pcicore *pc, u32 tmp; /* We do only have one cardbus device behind the bridge. */ - if (pc->cardbusmode && (dev >= 1)) + if (pc->cardbusmode && (dev > 1)) goto out; if (bus == 0) {