aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/rtl8366s.c
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2010-07-15 13:05:21 +0000
committerGabor Juhos <juhosg@openwrt.org>2010-07-15 13:05:21 +0000
commit534480d3fb27fd5f376570defe29df04ae5bb6a1 (patch)
tree07edd59b1d0d35556d4e7ee945fa405b4f7589ea /target/linux/generic/files/drivers/net/phy/rtl8366s.c
parentb093cec6cca842bd2f6bf1b6f904738b273e8682 (diff)
downloadupstream-534480d3fb27fd5f376570defe29df04ae5bb6a1.tar.gz
upstream-534480d3fb27fd5f376570defe29df04ae5bb6a1.tar.bz2
upstream-534480d3fb27fd5f376570defe29df04ae5bb6a1.zip
generic: rtl8366: add setup to rtl8366_smi_ops struct
SVN-Revision: 22196
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/rtl8366s.c')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index 6f3fdd5092..34fd188595 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -1130,6 +1130,8 @@ static int rtl8366s_detect(struct rtl8366_smi *smi)
static struct rtl8366_smi_ops rtl8366s_smi_ops = {
.detect = rtl8366s_detect,
+ .setup = rtl8366s_setup,
+
.mii_read = rtl8366s_mii_read,
.mii_write = rtl8366s_mii_write,
@@ -1181,10 +1183,6 @@ static int __init rtl8366s_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, smi);
- err = rtl8366s_setup(smi);
- if (err)
- goto err_clear_drvdata;
-
err = rtl8366s_switch_init(smi);
if (err)
goto err_clear_drvdata;