projects
/
oweals
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ar71xx: fix a compiler warning
[oweals/openwrt.git]
/
target
/
linux
/
ar71xx
/
files
/
arch
/
mips
/
ar71xx
/
mach-all0258n.c
diff --git
a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c
b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c
index 8b50a542c26a02e3e6517898e1e66facac45abed..18d0a93a971522bea5a59586dd51c3f0978702e1 100644
(file)
--- a/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c
+++ b/
target/linux/ar71xx/files/arch/mips/ar71xx/mach-all0258n.c
@@
-31,7
+31,6
@@
#define ALL0258N_KEYS_DEBOUNCE_INTERVAL (3 * ALL0258N_KEYS_POLL_INTERVAL)
/* showed up in the original firmware's bootlog */
#define ALL0258N_KEYS_DEBOUNCE_INTERVAL (3 * ALL0258N_KEYS_POLL_INTERVAL)
/* showed up in the original firmware's bootlog */
-#define ALL0258N_LAN_PHYMASK BIT(4)
#define ALL0258N_SEC_PHYMASK BIT(3)
/*
#define ALL0258N_SEC_PHYMASK BIT(3)
/*
@@
-127,14
+126,9
@@
static void __init all0258n_setup(void)
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth0_data.mac_addr, mac, 0);
ar71xx_init_mac(ar71xx_eth1_data.mac_addr, mac, 0);
- ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
- ar71xx_eth0_data.phy_mask = ALL0258N_LAN_PHYMASK;
-
- ar71xx_eth1_data.phy_if_mode = PHY_INTERFACE_MODE_RMII;
ar71xx_eth1_data.phy_mask = ALL0258N_SEC_PHYMASK;
ar71xx_eth1_data.phy_mask = ALL0258N_SEC_PHYMASK;
- ar71xx_eth1_data.has_ar7240_switch = 1;
- ar71xx_add_device_mdio(0x0);
+ ar71xx_add_device_mdio(0
, 0
x0);
ar71xx_add_device_eth(0);
ar71xx_add_device_eth(1);
ar71xx_add_device_eth(0);
ar71xx_add_device_eth(1);