Prechádzať zdrojové kódy

MIPS: RB532: Disable the right device

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Phil Sutter 16 rokov pred
rodič
commit
bc4c4e832a
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      arch/mips/rb532/devices.c

+ 1 - 1
arch/mips/rb532/devices.c

@@ -280,7 +280,7 @@ static int __init plat_setup_devices(void)
 {
 	/* Look for the CF card reader */
 	if (!readl(IDT434_REG_BASE + DEV1MASK))
-		rb532_devs[1] = NULL;
+		rb532_devs[2] = NULL;	/* disable cf_slot0 at index 2 */
 	else {
 		cf_slot0_res[0].start =
 		    readl(IDT434_REG_BASE + DEV1BASE);