diff options
author | Michael Büsch <mb@bu3sch.de> | 2008-02-19 16:50:12 +0000 |
---|---|---|
committer | Michael Büsch <mb@bu3sch.de> | 2008-02-19 16:50:12 +0000 |
commit | b7a471795e6ab0d53cb5f031c45b89c7e3c7374d (patch) | |
tree | a7773c01b98e0d97bb69ee334c181f55ee7b389b /target/linux/brcm47xx/files/arch/mips/bcm947xx | |
parent | 378e11cb84859d53366526e0d7bd940a35c1196a (diff) | |
download | master-187ad058-b7a471795e6ab0d53cb5f031c45b89c7e3c7374d.tar.gz master-187ad058-b7a471795e6ab0d53cb5f031c45b89c7e3c7374d.tar.bz2 master-187ad058-b7a471795e6ab0d53cb5f031c45b89c7e3c7374d.zip |
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
Diffstat (limited to 'target/linux/brcm47xx/files/arch/mips/bcm947xx')
-rw-r--r-- | target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c b/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c index 2c106c9b26..85ff1cf813 100644 --- a/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c +++ b/target/linux/brcm47xx/files/arch/mips/bcm947xx/setup.c @@ -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; } |