diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 18:29:26 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2012-04-29 18:29:26 +0000 |
commit | badd7a3cf29aa6c156ddc0010e68519814b456e5 (patch) | |
tree | 46ebff9d060ca0072de72abca93773e42702d8cd /target/linux/generic/files/drivers/net/phy/rtl8366rb.c | |
parent | 3e3a4d3d6b4c9d6e34ea887151db8df98d3db001 (diff) | |
download | mtk-20170518-badd7a3cf29aa6c156ddc0010e68519814b456e5.zip mtk-20170518-badd7a3cf29aa6c156ddc0010e68519814b456e5.tar.gz mtk-20170518-badd7a3cf29aa6c156ddc0010e68519814b456e5.tar.bz2 |
linux: rtl836x: add a reset_chip callback to rtl8366_smi_ops
SVN-Revision: 31534
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366rb.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/rtl8366rb.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c index 020e93a..ea99aa7 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c @@ -1140,14 +1140,7 @@ static int rtl8366rb_mii_write(struct mii_bus *bus, int addr, int reg, u16 val) static int rtl8366rb_setup(struct rtl8366_smi *smi) { - int ret; - - ret = rtl8366rb_reset_chip(smi); - if (ret) - return ret; - - ret = rtl8366rb_hw_init(smi); - return ret; + return rtl8366rb_hw_init(smi); } static int rtl8366rb_detect(struct rtl8366_smi *smi) @@ -1185,6 +1178,7 @@ static int rtl8366rb_detect(struct rtl8366_smi *smi) static struct rtl8366_smi_ops rtl8366rb_smi_ops = { .detect = rtl8366rb_detect, + .reset_chip = rtl8366rb_reset_chip, .setup = rtl8366rb_setup, .mii_read = rtl8366rb_mii_read, |