summaryrefslogtreecommitdiff
path: root/target
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2014-01-10 09:37:59 +0000
committerGabor Juhos <juhosg@openwrt.org>2014-01-10 09:37:59 +0000
commitc977d49a2967e20b0d59c778161c555c4ced8eb3 (patch)
treee1c5002a5479a22c63eef6e8be1d8c7dd4157683 /target
parentcc3beb9c760d75d3e0e2ae15783fa3ae1e44b3a0 (diff)
downloadmtk-20170518-c977d49a2967e20b0d59c778161c555c4ced8eb3.zip
mtk-20170518-c977d49a2967e20b0d59c778161c555c4ced8eb3.tar.gz
mtk-20170518-c977d49a2967e20b0d59c778161c555c4ced8eb3.tar.bz2
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 <juhosg@openwrt.org> SVN-Revision: 39217
Diffstat (limited to 'target')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n750.c8
1 files changed, 2 insertions, 6 deletions
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 737bec2..a8335cc 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);