]> git.baikalelectronics.ru Git - kernel.git/commit
fsl_pq_mdio: Fix compiler/sparse warnings (part 2)
authorAnton Vorontsov <avorontsov@ru.mvista.com>
Wed, 4 Nov 2009 12:52:57 +0000 (12:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Nov 2009 08:43:17 +0000 (00:43 -0800)
commit60e6d67471dd5bf1fc8e6fe3d69cb5f99df84226
treed2082c2cdd64bf5017505b026d1e77953f8c28b9
parent4f42555d4fd265861f8fafd7aea4741ed5f876f9
fsl_pq_mdio: Fix compiler/sparse warnings (part 2)

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: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/fsl_pq_mdio.c