diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-02-10 18:38:10 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-02-10 18:38:10 +0000 |
commit | 77bc7d2f0789869a614b3220b6840597d596b5eb (patch) | |
tree | c5e077ad4e1ed28ec135c5f81d024b61e190abf6 | |
parent | f6df051dc946726cc1d7f09668e0b15363f22ac3 (diff) | |
download | upstream-77bc7d2f0789869a614b3220b6840597d596b5eb.tar.gz upstream-77bc7d2f0789869a614b3220b6840597d596b5eb.tar.bz2 upstream-77bc7d2f0789869a614b3220b6840597d596b5eb.zip |
generic: ar8216: only set phy_ptr if packet mangling is used
Signed-off-by: Gabor Juhos <juhosg@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35541 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8216.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c index 720b0eec34..f7ce0189f0 100644 --- 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; |