From 728c2c6cff021ca4559923894e715144cd9f3772 Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 16 Dec 2013 08:17:40 +0000 Subject: [PATCH] ar71xx: rb95x: nuke rb95x_gpio_init Set up the chipselect GPIO directly in rb95x_nand_init instead. Signed-off-by: Gabor Juhos SVN-Revision: 39087 --- target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c index f59c14c53f0..1e5c477e3bb 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rb95x.c @@ -170,6 +170,8 @@ static int rb95x_nand_scan_fixup(struct mtd_info *mtd) void __init rb95x_nand_init(void) { + gpio_request_one(RB95X_GPIO_NAND_NCE, GPIOF_OUT_INIT_HIGH, "NAND nCE"); + ath79_nfc_set_scan_fixup(rb95x_nand_scan_fixup); ath79_nfc_set_parts(rb95x_nand_partitions, ARRAY_SIZE(rb95x_nand_partitions)); @@ -178,14 +180,8 @@ void __init rb95x_nand_init(void) ath79_register_nfc(); } -void __init rb95x_gpio_init(void) -{ - gpio_request_one(RB95X_GPIO_NAND_NCE, GPIOF_OUT_INIT_HIGH, "NAND nCE"); -} - static void __init rb95x_setup(void) { - rb95x_gpio_init(); rb95x_nand_init(); ath79_setup_ar934x_eth_cfg(AR934X_ETH_CFG_RGMII_GMAC0 | -- 2.30.2