mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
ssb: Fix the horrible crash of innocent cardbus cards.
No Animals were harmed in the production of this patch. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@10497 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -158,6 +158,9 @@ static int bcm47xx_get_invariants(struct ssb_bus *bus, struct ssb_init_invariant
|
||||
|
||||
bcm47xx_fill_sprom(&iv->sprom);
|
||||
|
||||
if ((s = nvram_get("cardbus")))
|
||||
iv->has_cardbus_slot = !!simple_strtoul(s, NULL, 10);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user