From e83b2c39b07b10c81ad952c7bb77b582005d0131 Mon Sep 17 00:00:00 2001 From: juhosg Date: Fri, 10 Jan 2014 09:37:59 +0000 Subject: ar71xx: my net n750: simplify LNA GPIO setup Use the ath79_wmac_set_ext_lna_gpio helper instead of exporting the GPIOs. Signed-off-by: Gabor Juhos git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39217 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'target/linux/ar71xx/files') diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c index 737bec2b0d..a8335cc1a5 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c @@ -178,12 +178,8 @@ static void __init mynet_n750_setup(void) * Taken from GPL bootloader source: * board/ar7240/db12x/alpha_gpio.c */ - gpio_request_one(MYNET_N750_GPIO_EXTERNAL_LNA0, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, - "External LNA0"); - gpio_request_one(MYNET_N750_GPIO_EXTERNAL_LNA1, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, - "External LNA1"); + ath79_wmac_set_ext_lna_gpio(0, MYNET_N750_GPIO_EXTERNAL_LNA0); + ath79_wmac_set_ext_lna_gpio(1, MYNET_N750_GPIO_EXTERNAL_LNA1); mynet_n750_get_mac("wlan24mac=", tmpmac); ath79_register_wmac(art + MYNET_N750_WMAC_CALDATA_OFFSET, tmpmac); -- cgit v1.2.3