projects
/
openwrt
/
staging
/
hauke.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
393163b
)
generic: ar8216: only set phy_ptr if packet mangling is used
author
Gabor Juhos
<
[email protected]
>
Sun, 10 Feb 2013 18:38:10 +0000
(18:38 +0000)
committer
Gabor Juhos
<
[email protected]
>
Sun, 10 Feb 2013 18:38:10 +0000
(18:38 +0000)
Signed-off-by: Gabor Juhos <
[email protected]
>
SVN-Revision: 35541
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 720b0eec349ce05c2a99d42854bcb01845568f34..f7ce0189f042eeaa109fe20869c9607969cd5d7d 100644
(file)
--- a/
target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/
target/linux/generic/files/drivers/net/phy/ar8216.c
@@
-1880,10
+1880,9
@@
ar8216_config_init(struct phy_device *pdev)
if (ret)
goto err_unregister_switch;
- dev->phy_ptr = priv;
-
/* VID fixup only needed on ar8216 */
if (chip_is_ar8216(priv) && pdev->addr == 0) {
+ dev->phy_ptr = priv;
dev->priv_flags |= IFF_NO_IP_ALIGN;
dev->eth_mangle_rx = ar8216_mangle_rx;
dev->eth_mangle_tx = ar8216_mangle_tx;