aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:29 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-04-29 18:29:29 +0000
commit1d9400263fd52a054d50ce9726e4ec8e78b66672 (patch)
tree12888777de304c405d1d3dca71afbd73e577d826 /target/linux/generic
parentbadd7a3cf29aa6c156ddc0010e68519814b456e5 (diff)
downloadupstream-1d9400263fd52a054d50ce9726e4ec8e78b66672.tar.gz
upstream-1d9400263fd52a054d50ce9726e4ec8e78b66672.tar.bz2
upstream-1d9400263fd52a054d50ce9726e4ec8e78b66672.zip
linux: rtl836x: rename rtl836*_hw_init to rtl836*_setup
SVN-Revision: 31535
Diffstat (limited to 'target/linux/generic')
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366rb.c9
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8366s.c9
-rw-r--r--target/linux/generic/files/drivers/net/phy/rtl8367.c9
3 files changed, 6 insertions, 21 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
index ea99aa73c2..2323abf3b5 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366rb.c
@@ -265,7 +265,7 @@ static int rtl8366rb_reset_chip(struct rtl8366_smi *smi)
return 0;
}
-static int rtl8366rb_hw_init(struct rtl8366_smi *smi)
+static int rtl8366rb_setup(struct rtl8366_smi *smi)
{
int err;
@@ -942,7 +942,7 @@ static int rtl8366rb_sw_reset_switch(struct switch_dev *dev)
if (err)
return err;
- err = rtl8366rb_hw_init(smi);
+ err = rtl8366rb_setup(smi);
if (err)
return err;
@@ -1138,11 +1138,6 @@ static int rtl8366rb_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err;
}
-static int rtl8366rb_setup(struct rtl8366_smi *smi)
-{
- return rtl8366rb_hw_init(smi);
-}
-
static int rtl8366rb_detect(struct rtl8366_smi *smi)
{
u32 chip_id = 0;
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366s.c b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
index 2a8b3a7c8c..b31d0be2f5 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8366s.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8366s.c
@@ -248,7 +248,7 @@ static int rtl8366s_reset_chip(struct rtl8366_smi *smi)
return 0;
}
-static int rtl8366s_hw_init(struct rtl8366_smi *smi)
+static int rtl8366s_setup(struct rtl8366_smi *smi)
{
struct rtl8366_platform_data *pdata;
int err;
@@ -842,7 +842,7 @@ static int rtl8366s_sw_reset_switch(struct switch_dev *dev)
if (err)
return err;
- err = rtl8366s_hw_init(smi);
+ err = rtl8366s_setup(smi);
if (err)
return err;
@@ -1018,11 +1018,6 @@ static int rtl8366s_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err;
}
-static int rtl8366s_setup(struct rtl8366_smi *smi)
-{
- return rtl8366s_hw_init(smi);
-}
-
static int rtl8366s_detect(struct rtl8366_smi *smi)
{
u32 chip_id = 0;
diff --git a/target/linux/generic/files/drivers/net/phy/rtl8367.c b/target/linux/generic/files/drivers/net/phy/rtl8367.c
index c56a129b90..9959ee3dae 100644
--- a/target/linux/generic/files/drivers/net/phy/rtl8367.c
+++ b/target/linux/generic/files/drivers/net/phy/rtl8367.c
@@ -1071,7 +1071,7 @@ static int rtl8367_led_blinkrate_set(struct rtl8366_smi *smi, unsigned int rate)
return 0;
}
-static int rtl8367_hw_init(struct rtl8366_smi *smi)
+static int rtl8367_setup(struct rtl8366_smi *smi)
{
struct rtl8367_platform_data *pdata;
int err;
@@ -1485,7 +1485,7 @@ static int rtl8367_sw_reset_switch(struct switch_dev *dev)
return err;
- err = rtl8367_hw_init(smi);
+ err = rtl8367_setup(smi);
if (err)
return err;
@@ -1635,11 +1635,6 @@ static int rtl8367_mii_write(struct mii_bus *bus, int addr, int reg, u16 val)
return err;
}
-static int rtl8367_setup(struct rtl8366_smi *smi)
-{
- return rtl8367_hw_init(smi);
-}
-
static int rtl8367_detect(struct rtl8366_smi *smi)
{
u32 rtl_no = 0;