mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
linux: rtl836x: add a reset_chip callback to rtl8366_smi_ops
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31534 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -1140,14 +1140,7 @@ static int rtl8366rb_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
|
||||
|
||||
static int rtl8366rb_setup(struct rtl8366_smi *smi)
|
||||
{
|
||||
int ret;
|
||||
|
||||
ret = rtl8366rb_reset_chip(smi);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
ret = rtl8366rb_hw_init(smi);
|
||||
return ret;
|
||||
return rtl8366rb_hw_init(smi);
|
||||
}
|
||||
|
||||
static int rtl8366rb_detect(struct rtl8366_smi *smi)
|
||||
@@ -1185,6 +1178,7 @@ static int rtl8366rb_detect(struct rtl8366_smi *smi)
|
||||
|
||||
static struct rtl8366_smi_ops rtl8366rb_smi_ops = {
|
||||
.detect = rtl8366rb_detect,
|
||||
.reset_chip = rtl8366rb_reset_chip,
|
||||
.setup = rtl8366rb_setup,
|
||||
|
||||
.mii_read = rtl8366rb_mii_read,
|
||||
|
||||
Reference in New Issue
Block a user