projects
/
openwrt
/
staging
/
mans0n.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
94806a1
)
ar8216: remove superfluous code from ar8216_config_init
author
Gabor Juhos
<
[email protected]
>
Mon, 11 Feb 2013 16:57:31 +0000
(16:57 +0000)
committer
Gabor Juhos
<
[email protected]
>
Mon, 11 Feb 2013 16:57:31 +0000
(16:57 +0000)
Signed-off-by: Gabor Juhos <
[email protected]
>
SVN-Revision: 35562
target/linux/generic/files/drivers/net/phy/ar8216.c
patch
|
blob
|
history
diff --git
a/target/linux/generic/files/drivers/net/phy/ar8216.c
b/target/linux/generic/files/drivers/net/phy/ar8216.c
index b1791172e01d29a59c89c2d7dee9c6aff515de84..811e406f3a5dd91bc7d04ba111c036ed0ec8f9ad 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/
target/linux/generic/files/drivers/net/phy/ar8216.c
@@
-1861,18
+1861,6
@@
ar8216_config_init(struct phy_device *phydev)
if (phydev->addr != 0) {
if (chip_is_ar8316(priv)) {
- /* check if we're attaching to the switch twice */
- phydev = phydev->bus->phy_map[0];
- if (!phydev)
- return 0;
-
- /* switch device has not been initialized, reuse priv */
- if (!phydev->priv) {
- priv->port4_phy = true;
- priv->dev.ports = (AR8216_NUM_PORTS - 1);
- return 0;
- }
-
/* switch device has been initialized, reinit */
priv->dev.ports = (AR8216_NUM_PORTS - 1);
priv->initialized = false;