Changeset 35541


Ignore:
Timestamp:
2013-02-10T19:38:10+01:00 (5 years ago)
Author:
juhosg
Message:

generic: ar8216: only set phy_ptr if packet mangling is used

Signed-off-by: Gabor Juhos <juhosg@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/target/linux/generic/files/drivers/net/phy/ar8216.c

    r35539 r35541  
    18811881                goto err_unregister_switch; 
    18821882 
    1883         dev->phy_ptr = priv; 
    1884  
    18851883        /* VID fixup only needed on ar8216 */ 
    18861884        if (chip_is_ar8216(priv) && pdev->addr == 0) { 
     1885                dev->phy_ptr = priv; 
    18871886                dev->priv_flags |= IFF_NO_IP_ALIGN; 
    18881887                dev->eth_mangle_rx = ar8216_mangle_rx; 
Note: See TracChangeset for help on using the changeset viewer.