linux: rtl836x: rename rtl836*_hw_init to rtl836*_setup

SVN-Revision: 31535
This commit is contained in:
Gabor Juhos 2012-04-29 18:29:29 +00:00
parent badd7a3cf2
commit 1d9400263f
3 changed files with 6 additions and 21 deletions

View File

@ -265,7 +265,7 @@ static int rtl8366rb_reset_chip(struct rtl8366_smi *smi)
return 0; return 0;
} }
static int rtl8366rb_hw_init(struct rtl8366_smi *smi) static int rtl8366rb_setup(struct rtl8366_smi *smi)
{ {
int err; int err;
@ -942,7 +942,7 @@ static int rtl8366rb_sw_reset_switch(struct switch_dev *dev)
if (err) if (err)
return err; return err;
err = rtl8366rb_hw_init(smi); err = rtl8366rb_setup(smi);
if (err) if (err)
return err; return err;
@ -1138,11 +1138,6 @@ static int rtl8366rb_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err; return err;
} }
static int rtl8366rb_setup(struct rtl8366_smi *smi)
{
return rtl8366rb_hw_init(smi);
}
static int rtl8366rb_detect(struct rtl8366_smi *smi) static int rtl8366rb_detect(struct rtl8366_smi *smi)
{ {
u32 chip_id = 0; u32 chip_id = 0;

View File

@ -248,7 +248,7 @@ static int rtl8366s_reset_chip(struct rtl8366_smi *smi)
return 0; return 0;
} }
static int rtl8366s_hw_init(struct rtl8366_smi *smi) static int rtl8366s_setup(struct rtl8366_smi *smi)
{ {
struct rtl8366_platform_data *pdata; struct rtl8366_platform_data *pdata;
int err; int err;
@ -842,7 +842,7 @@ static int rtl8366s_sw_reset_switch(struct switch_dev *dev)
if (err) if (err)
return err; return err;
err = rtl8366s_hw_init(smi); err = rtl8366s_setup(smi);
if (err) if (err)
return err; return err;
@ -1018,11 +1018,6 @@ static int rtl8366s_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err; return err;
} }
static int rtl8366s_setup(struct rtl8366_smi *smi)
{
return rtl8366s_hw_init(smi);
}
static int rtl8366s_detect(struct rtl8366_smi *smi) static int rtl8366s_detect(struct rtl8366_smi *smi)
{ {
u32 chip_id = 0; u32 chip_id = 0;

View File

@ -1071,7 +1071,7 @@ static int rtl8367_led_blinkrate_set(struct rtl8366_smi *smi, unsigned int rate)
return 0; return 0;
} }
static int rtl8367_hw_init(struct rtl8366_smi *smi) static int rtl8367_setup(struct rtl8366_smi *smi)
{ {
struct rtl8367_platform_data *pdata; struct rtl8367_platform_data *pdata;
int err; int err;
@ -1485,7 +1485,7 @@ static int rtl8367_sw_reset_switch(struct switch_dev *dev)
return err; return err;
err = rtl8367_hw_init(smi); err = rtl8367_setup(smi);
if (err) if (err)
return err; return err;
@ -1635,11 +1635,6 @@ static int rtl8367_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err; return err;
} }
static int rtl8367_setup(struct rtl8366_smi *smi)
{
return rtl8367_hw_init(smi);
}
static int rtl8367_detect(struct rtl8366_smi *smi) static int rtl8367_detect(struct rtl8366_smi *smi)
{ {
u32 rtl_no = 0; u32 rtl_no = 0;