2
0
forked from Ivasoft/openwrt

generic: rtl8366: add setup to rtl8366_smi_ops struct

SVN-Revision: 22196
This commit is contained in:
Gabor Juhos
2010-07-15 13:05:21 +00:00
parent b093cec6cc
commit 534480d3fb
4 changed files with 11 additions and 8 deletions

View File

@@ -790,6 +790,12 @@ int rtl8366_smi_init(struct rtl8366_smi *smi)
goto err_free_sck;
}
err = smi->ops->setup(smi);
if (err) {
dev_err(smi->parent, "chip setup failed, err=%d\n", err);
goto err_free_sck;
}
err = rtl8366_smi_mii_init(smi);
if (err)
goto err_free_sck;