aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2013-05-30 17:38:17 +0000
committerGabor Juhos <juhosg@openwrt.org>2013-05-30 17:38:17 +0000
commit7d955c422b9dcec6bc54bd09ef2b7dd5625362a5 (patch)
tree9d2ace188b2d2f008d26b34de9323794de00d503 /target
parentc647fa6c829c19af192b84618364d503fde55b73 (diff)
downloadmaster-187ad058-7d955c422b9dcec6bc54bd09ef2b7dd5625362a5.tar.gz
master-187ad058-7d955c422b9dcec6bc54bd09ef2b7dd5625362a5.tar.bz2
master-187ad058-7d955c422b9dcec6bc54bd09ef2b7dd5625362a5.zip
ar71xx: rb2011: move NAND nCE init to rb2011_nand_init
Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36794 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
index 86a8d0755d..7a24e98c66 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb2011.c
@@ -212,6 +212,8 @@ static int rb2011_nand_scan_fixup(struct mtd_info *mtd)
static void __init rb2011_nand_init(void)
{
+ gpio_request_one(RB2011_GPIO_NAND_NCE, GPIOF_OUT_INIT_HIGH, "NAND nCE");
+
ath79_nfc_set_scan_fixup(rb2011_nand_scan_fixup);
ath79_nfc_set_parts(rb2011_nand_partitions,
ARRAY_SIZE(rb2011_nand_partitions));
@@ -220,15 +222,9 @@ static void __init rb2011_nand_init(void)
ath79_register_nfc();
}
-static void __init rb2011_gpio_init(void)
-{
- gpio_request_one(RB2011_GPIO_NAND_NCE, GPIOF_OUT_INIT_HIGH, "NAND nCE");
-}
-
static void __init rb2011_setup(void)
{
rb2011_init_partitions();
- rb2011_gpio_init();
ath79_register_m25p80(&rb2011_spi_flash_data);
rb2011_nand_init();