linux-mips
[Top] [All Lists]

[PATCH] disable the right device

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH] disable the right device
From: Phil Sutter <n0-1@freewrt.org>
Date: Mon, 27 Oct 2008 02:29:57 +0100
Cc: Linux-Mips List <linux-mips@linux-mips.org>, Florian Fainelli <florian@openwrt.org>
In-reply-to: <20081026103635.GA10490@linux-mips.org>
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20081026103635.GA10490@linux-mips.org>
Sender: linux-mips-bounce@linux-mips.org
Signed-off-by: Florian Fainelli <florian@openwrt.org>
---
 arch/mips/rb532/devices.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/rb532/devices.c b/arch/mips/rb532/devices.c
index 31619c6..2f22d71 100644
--- a/arch/mips/rb532/devices.c
+++ b/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);
-- 
1.5.6.4


<Prev in Thread] Current Thread [Next in Thread>