aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx
diff options
context:
space:
mode:
authorThibaut VARÈNE <hacks@slashdirt.org>2020-05-08 13:46:42 +0200
committerKoen Vandeputte <koen.vandeputte@ncentric.com>2020-05-12 12:43:38 +0200
commit4cd44e5dc73ff9554cf31773b008f7ee94d979ed (patch)
treec8b15f2e5b4304a0e9eaf77adab9ccf6ce40ecc5 /target/linux/ar71xx
parent3fecb06fb1b0005a52dc10dba7f5ff8b8abc578b (diff)
downloadupstream-4cd44e5dc73ff9554cf31773b008f7ee94d979ed.tar.gz
upstream-4cd44e5dc73ff9554cf31773b008f7ee94d979ed.tar.bz2
upstream-4cd44e5dc73ff9554cf31773b008f7ee94d979ed.zip
ar71xx: mikrotik: mach-rbspi.c remove wlan id
Following on the previous commit, this patch removes useless id argument from rbspi_wlan_init(). Signed-off-by: Thibaut VARÈNE <hacks@slashdirt.org>
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
index 6bb42c78e3..cb05c9142c 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-rbspi.c
@@ -672,12 +672,12 @@ static struct spi_board_info rbspi_spi_info[] = {
}
};
-void __init rbspi_wlan_init(u16 id, int wmac_offset)
+void __init rbspi_wlan_init(int wmac_offset)
{
char *art_buf;
u8 wlan_mac[ETH_ALEN];
- art_buf = rb_get_ext_wlan_data(id);
+ art_buf = rb_get_wlan_data();
if (!art_buf)
return;
@@ -785,10 +785,10 @@ static void __init rbspi_network_setup(u32 flags, int gmac1_offset,
ath79_register_eth(1);
if (flags & RBSPI_HAS_WLAN0)
- rbspi_wlan_init(0, wmac0_offset);
+ rbspi_wlan_init(wmac0_offset);
if (flags & RBSPI_HAS_WLAN1)
- rbspi_wlan_init(1, wmac1_offset);
+ rbspi_wlan_init(wmac1_offset);
}
static __init void rbspi_register_reset_button(int gpio)
@@ -977,7 +977,7 @@ static void __init rb962_setup(void)
ath79_register_eth(0);
/* WLAN1 MAC is HW MAC + 7 */
- rbspi_wlan_init(1, 7);
+ rbspi_wlan_init(7);
if (flags & RBSPI_HAS_USB)
gpio_request_one(RB962_GPIO_USB_PWROFF, GPIOF_ACTIVE_LOW |
@@ -1133,7 +1133,7 @@ static void __init rbwapgsc_setup(void)
ath79_eth1_data.duplex = DUPLEX_FULL;
ath79_register_eth(1);
- rbspi_wlan_init(1, 2);
+ rbspi_wlan_init(2);
rbspi_register_reset_button(RBWAPGSC_GPIO_BTN_RESET);
@@ -1179,7 +1179,7 @@ static void __init rb911l_setup(void)
ath79_register_eth(1);
- rbspi_wlan_init(0, 1);
+ rbspi_wlan_init(1);
rbspi_register_reset_button(RB911L_GPIO_BTN_RESET);