Received: from mail.onstor.com ([66.201.51.107]) by onstor-exch02.onstor.net with Microsoft SMTPSVC(6.0.3790.3959);
	 Sun, 26 Oct 2008 18:31:35 -0700
Received: from chiesmta2-1.messageone.com ([216.203.30.55]) by mail.onstor.com with Microsoft SMTPSVC(6.0.3790.3959);
	 Sun, 26 Oct 2008 18:31:34 -0700
Received: from ftp.linux-mips.org (ftp.linux-mips.org [213.58.128.207])
	by chiesmta2-1.messageone.com (8.13.8/8.13.8) with ESMTP id m9R1VXjE016345
	for <andy.sharp@onstor.com>; Sun, 26 Oct 2008 20:31:33 -0500
Received: from localhost.localdomain ([127.0.0.1]:9872 "EHLO
	ftp.linux-mips.org") by ftp.linux-mips.org with ESMTP
	id S22453087AbYJ0Bah (ORCPT <rfc822;andy.sharp@onstor.com>);
	Mon, 27 Oct 2008 01:30:37 +0000
Received: with ECARTIS (v1.0.0; list linux-mips); Mon, 27 Oct 2008 01:30:20 +0000 (GMT)
Received: from orbit.nwl.cc ([81.169.176.177]:57473 "EHLO
	mail.ifyouseekate.net") by ftp.linux-mips.org with ESMTP
	id S22453082AbYJ0BaM (ORCPT <rfc822;linux-mips@linux-mips.org>);
	Mon, 27 Oct 2008 01:30:12 +0000
Received: from base (localhost [127.0.0.1])
	by mail.ifyouseekate.net (Postfix) with ESMTP id 6B98938C1B79;
	Mon, 27 Oct 2008 02:30:01 +0100 (CET)
From: Phil Sutter <n0-1@freewrt.org>
To: Ralf Baechle <ralf@linux-mips.org>
Cc: Linux-Mips List <linux-mips@linux-mips.org>,
        Florian Fainelli <florian@openwrt.org>
Subject: [PATCH] disable the right device
Date: 	Mon, 27 Oct 2008 02:29:57 +0100
Message-Id: <1225070997-31819-1-git-send-email-n0-1@freewrt.org>
X-Mailer: git-send-email 1.5.6.4
In-Reply-To: <20081026103635.GA10490@linux-mips.org>
References: <20081026103635.GA10490@linux-mips.org>
X-archive-position: 20979
X-ecartis-version: Ecartis v1.0.0
Sender: linux-mips-bounce@linux-mips.org
Errors-to: linux-mips-bounce@linux-mips.org
X-original-sender: n0-1@freewrt.org
Precedence: bulk
X-list: 	linux-mips
X-MessageOne-Virus-Version: vendor=fsecure engine=4.65.7400:2.4.4,1.2.40,4.0.164 definitions=2008-10-26_02:2008-10-10,2008-10-26,2008-10-25 signatures=0
X-MessageOne-Virus-Scanned: Clean
X-MessageOne-Envelope-Sender: linux-mips-bounce@linux-mips.org
X-MessageOne-Spam-Details: rule=m773emszm_notspam policy=m773emszm score=0 spamscore=0 ipscore=0 phishscore=0 bulkscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx engine=3.1.0-0810130000 definitions=main-0810260206
X-MessageOne-Spam-Score: 0
X-MessageOne-Spam-Bar: 
Return-Path: linux-mips-bounce@linux-mips.org
X-OriginalArrivalTime: 27 Oct 2008 01:31:35.0100 (UTC) FILETIME=[BFB977C0:01C937D3]

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


