ssb: Fix the horrible crash of innocent cardbus cards.
[openwrt/svn-archive/archive.git] / target / linux / brcm47xx / files / arch / mips / bcm947xx / setup.c
index 2c106c9b2678b094683aaf0a02e040110a86ab95..85ff1cf813e2d9c76b0641c1ad654ae21a7e87ea 100644 (file)
@@ -158,6 +158,9 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus, struct ssb_init_invariant
 
        bcm47xx_fill_sprom(&iv->sprom);
 
 
        bcm47xx_fill_sprom(&iv->sprom);
 
+       if ((s = nvram_get("cardbus")))
+               iv->has_cardbus_slot = !!simple_strtoul(s, NULL, 10);
+
        return 0;
 }
 
        return 0;
 }