linux-mips
[Top] [All Lists]

[PATCH] rbtx4939: Fix IOC pin-enable register updating

To: linux-mips@linux-mips.org
Subject: [PATCH] rbtx4939: Fix IOC pin-enable register updating
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Date: Wed, 15 Jul 2009 22:03:56 +0900
Cc: ralf@linux-mips.org
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
The rbtx4939_update_ioc_pen() expects txx9_ce_res[] already
initialized.  Call it after tx4939_setup().

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
---
 arch/mips/txx9/rbtx4939/setup.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/mips/txx9/rbtx4939/setup.c b/arch/mips/txx9/rbtx4939/setup.c
index c033ffe..b0c241e 100644
--- a/arch/mips/txx9/rbtx4939/setup.c
+++ b/arch/mips/txx9/rbtx4939/setup.c
@@ -512,10 +512,10 @@ static void __init rbtx4939_setup(void)
        rbtx4939_ebusc_setup();
        /* always enable ATA0 */
        txx9_set64(&tx4939_ccfgptr->pcfg, TX4939_PCFG_ATA0MODE);
-       rbtx4939_update_ioc_pen();
        if (txx9_master_clock == 0)
                txx9_master_clock = 20000000;
        tx4939_setup();
+       rbtx4939_update_ioc_pen();
 #ifdef HAVE_RBTX4939_IOSWAB
        ioswabw = rbtx4939_ioswabw;
        __mem_ioswabw = rbtx4939_mem_ioswabw;
-- 
1.5.6.5


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