mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
generic: rtl8366: add setup to rtl8366_smi_ops struct
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@22196 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user