summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8367.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:26 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:26 +0000
commitbadd7a3cf29aa6c156ddc0010e68519814b456e5 (patch)
tree46ebff9d060ca0072de72abca93773e42702d8cd /target/linux/generic/files/drivers/net/phy/rtl8367.c
parent3e3a4d3d6b4c9d6e34ea887151db8df98d3db001 (diff)
downloadmaster-31e0f0ae-badd7a3cf29aa6c156ddc0010e68519814b456e5.tar.gz
master-31e0f0ae-badd7a3cf29aa6c156ddc0010e68519814b456e5.tar.bz2
master-31e0f0ae-badd7a3cf29aa6c156ddc0010e68519814b456e5.zip
linux: rtl836x: add a reset_chip callback to rtl8366_smi_ops
SVN-Revision: 31534
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8367.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index 917976e302..c56a129b90 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c
@@ -1637,14 +1637,7 @@ static int rtl8367_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
static int rtl8367_setup(struct rtl8366_smi *smi)
{
- int ret;
-
- ret = rtl8367_reset_chip(smi);
- if (ret)
- return ret;
-
- ret = rtl8367_hw_init(smi);
- return ret;
+ return rtl8367_hw_init(smi);
}
static int rtl8367_detect(struct rtl8366_smi *smi)
@@ -1686,6 +1679,7 @@ static int rtl8367_detect(struct rtl8366_smi *smi)
static struct rtl8366_smi_ops rtl8367_smi_ops = {
.detect = rtl8367_detect,
+ .reset_chip = rtl8367_reset_chip,
.setup = rtl8367_setup,
.mii_read = rtl8367_mii_read,