diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 20:17:07 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-01-18 20:17:07 +0000 |
commit | 8b61d50febc941e1b4e30e5ba103340c8637ae6a (patch) | |
tree | fa542344ab95800ea293d3028bee516669f1ec0f /target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c | |
parent | 71a43766c287302cdb7dc9fc6eca5a39924e65db (diff) | |
download | upstream-8b61d50febc941e1b4e30e5ba103340c8637ae6a.tar.gz upstream-8b61d50febc941e1b4e30e5ba103340c8637ae6a.tar.bz2 upstream-8b61d50febc941e1b4e30e5ba103340c8637ae6a.zip |
ralink: use fe_reset to control all reset
Signed-off-by: michael lee <igvtee@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44044 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c')
-rw-r--r-- | target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c index 4602745542..43467310bd 100644 --- a/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c +++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/soc_rt2880.c @@ -22,7 +22,6 @@ #include "ralink_soc_eth.h" #include "mdio_rt2880.h" -#define SYSC_REG_RESET_CTRL 0x034 #define RT2880_RESET_FE BIT(18) static void rt2880_init_data(struct fe_soc_data *data, @@ -39,7 +38,7 @@ static void rt2880_init_data(struct fe_soc_data *data, void rt2880_fe_reset(void) { - rt_sysc_w32(RT2880_RESET_FE, SYSC_REG_RESET_CTRL); + fe_reset(RT2880_RESET_FE); } static int rt2880_fwd_config(struct fe_priv *priv) |