2
0
forked from Ivasoft/openwrt

linux: rtl836x: add a reset_chip callback to rtl8366_smi_ops

SVN-Revision: 31534
This commit is contained in:
Gabor Juhos
2012-04-29 18:29:26 +00:00
parent 3e3a4d3d6b
commit badd7a3cf2
5 changed files with 11 additions and 24 deletions

View File

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