• Anton Vorontsov's avatar
    fsl_pq_mdio: Fix compiler/sparse warnings (part 2) · 6748f60b
    Anton Vorontsov authored
    This patch fixes following warnings:
    
    fsl_pq_mdio.c:112:38: warning: cast adds address space to expression (<asn:2>)
    fsl_pq_mdio.c:124:38: warning: cast adds address space to expression (<asn:2>)
    fsl_pq_mdio.c:133:38: warning: cast adds address space to expression (<asn:2>)
    fsl_pq_mdio.c:414:11: warning: cast adds address space to expression (<asn:2>)
    
    Instead of adding __force all over the place, introduce convenient
    fsl_pq_mdio_get_regs() call that does the ugly casting just once.
    Signed-off-by: default avatarAnton Vorontsov <avorontsov@ru.mvista.com>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6748f60b
fsl_pq_mdio.c 11 KB