brcm47xx: backport r29923
[openwrt-10.03/.git] / target / linux / brcm47xx / patches-2.6.32 / 180-fix-cardbus-in-hostmode.patch
1 --- a/drivers/ssb/driver_pcicore.c
2 +++ b/drivers/ssb/driver_pcicore.c
3 @@ -69,7 +69,7 @@ static u32 get_cfgspace_addr(struct ssb_
4         u32 tmp;
5  
6         /* We do only have one cardbus device behind the bridge. */
7 -       if (pc->cardbusmode && (dev >= 1))
8 +       if (pc->cardbusmode && (dev > 1))
9                 goto out;
10  
11         if (bus == 0) {