aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/files
diff options
context:
space:
mode:
authorJohn Crispin <john@phrozen.org>2018-05-24 00:23:16 +0200
committerJohn Crispin <john@phrozen.org>2018-05-24 15:43:39 +0200
commitf7aa08595db07f4c56484b3cef961553b8c09b02 (patch)
tree53883faa1e89dd80872dfb12f2fbd423e5dff922 /target/linux/ar71xx/files
parent5a6a32ad9bcf108c0d047b147fd80c0e0db75586 (diff)
downloadupstream-f7aa08595db07f4c56484b3cef961553b8c09b02.tar.gz
upstream-f7aa08595db07f4c56484b3cef961553b8c09b02.tar.bz2
upstream-f7aa08595db07f4c56484b3cef961553b8c09b02.zip
kernel: add reset control support to rtl8366 driver
Signed-off-by: John Crispin <john@phrozen.org>
Diffstat (limited to 'target/linux/ar71xx/files')
-rw-r--r--target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c
index 61aeb52d02..4e4b85d736 100644
--- a/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c
+++ b/target/linux/ar71xx/files/arch/mips/ath79/mach-tl-wr1043nd.c
@@ -83,7 +83,7 @@ static struct gpio_keys_button tl_wr1043nd_gpio_keys[] __initdata = {
}
};
-static void tl_wr1043nd_rtl8366rb_hw_reset(bool active)
+static void tl_wr1043nd_rtl8366rb_hw_reset(struct rtl8366_smi *smi, bool active)
{
if (active)
ath79_device_reset_set(AR71XX_RESET_GE0_PHY);
@@ -110,7 +110,7 @@ static void __init tl_wr1043nd_setup(void)
u8 *mac = (u8 *) KSEG1ADDR(0x1f01fc00);
u8 *eeprom = (u8 *) KSEG1ADDR(0x1fff1000);
- tl_wr1043nd_rtl8366rb_hw_reset(true);
+ tl_wr1043nd_rtl8366rb_hw_reset(NULL, true);
ath79_init_mac(ath79_eth0_data.mac_addr, mac, 0);
ath79_eth0_data.mii_bus_dev = &tl_wr1043nd_rtl8366rb_device.dev;