diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2014-01-10 09:37:58 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2014-01-10 09:37:58 +0000 |
commit | 14a9bf52626afc4e929801216c0f812e7c4982ae (patch) | |
tree | 66e5779364a2dc6c78e7084a54a5783437f6a7d2 /target/linux/ar71xx/files/arch/mips | |
parent | fee259994be6ffd66c4f40a4545ef262e3289831 (diff) | |
download | upstream-14a9bf52626afc4e929801216c0f812e7c4982ae.tar.gz upstream-14a9bf52626afc4e929801216c0f812e7c4982ae.tar.bz2 upstream-14a9bf52626afc4e929801216c0f812e7c4982ae.zip |
ar71xx: my net n600: 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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39216 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n600.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n600.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n600.c index 9e785ca163..a87413d201 100644 --- a/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n600.c +++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-mynet-n600.c @@ -160,12 +160,8 @@ static void __init mynet_n600_setup(void) * Taken from GPL bootloader source: * board/ar7240/db12x/alpha_gpio.c */ - gpio_request_one(MYNET_N600_GPIO_EXTERNAL_LNA0, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, - "External LNA0"); - gpio_request_one(MYNET_N600_GPIO_EXTERNAL_LNA1, - GPIOF_OUT_INIT_HIGH | GPIOF_EXPORT_DIR_FIXED, - "External LNA1"); + ath79_wmac_set_ext_lna_gpio(0, MYNET_N600_GPIO_EXTERNAL_LNA0); + ath79_wmac_set_ext_lna_gpio(1, MYNET_N600_GPIO_EXTERNAL_LNA1); mynet_n600_get_mac("wlan24mac=", tmpmac); ath79_register_wmac(art + MYNET_N600_WMAC_CALDATA_OFFSET, tmpmac); |