• B
    net: stmmac: fix argument to stmmac_pcs_ctrl_ane() · c9ad4c10
    Ben Dooks (Codethink) 提交于
    The stmmac_pcs_ctrl_ane() expects a register address as
    argument 1, but for some reason the mac_device_info is
    being passed.
    
    Fix the warning (and possible bug) from sparse:
    
    drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17: warning: incorrect type in argument 1 (different address spaces)
    drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17:    expected void [noderef] <asn:2> *ioaddr
    drivers/net/ethernet/stmicro/stmmac/stmmac_main.c:2613:17:    got struct mac_device_info *hw
    Signed-off-by: NBen Dooks <ben.dooks@codethink.co.uk>
    Signed-off-by: NDavid S. Miller <davem@davemloft.net>
    c9ad4c10
stmmac_main.c 133.0 KB