alistair23-linux/drivers/net/dsa/b53
Florian Fainelli 861690d054 net: dsa: b53: Fix sparse warnings in b53_mmap.c
sparse complains about the following warnings:

drivers/net/dsa/b53/b53_mmap.c:33:31: warning: incorrect type in
initializer (different address spaces)
drivers/net/dsa/b53/b53_mmap.c:33:31:    expected unsigned char
[noderef] [usertype] <asn:2>*regs
drivers/net/dsa/b53/b53_mmap.c:33:31:    got void *priv

and indeed, while what we are doing is functional, we are dereferencing
a void * pointer into a void __iomem * which is not great. Just use the
defined b53_mmap_priv structure which holds our register base and use
that.

Fixes: 967dd82ffc ("net: dsa: b53: Add support for Broadcom RoboSwitch")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2018-04-04 11:15:27 -04:00
..
b53_common.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2018-03-23 11:31:58 -04:00
b53_mdio.c net: dsa: b53: Utilize mdio_module_driver 2017-01-24 13:37:51 -05:00
b53_mmap.c net: dsa: b53: Fix sparse warnings in b53_mmap.c 2018-04-04 11:15:27 -04:00
b53_priv.h dsa: Pass the port to get_sset_count() 2018-03-04 13:34:18 -05:00
b53_regs.h net: dsa: b53: Define EEE register page 2017-09-19 16:08:53 -07:00
b53_spi.c net: dsa: b53: remove .owner and .bus fields for driver 2016-08-14 21:24:25 -07:00
b53_srab.c net: dsa: b53: Add compatible strings for the Cygnus-family BCM11360. 2017-05-18 11:01:42 -04:00
Kconfig net: dsa: b53: Support prepended Broadcom tags 2017-11-13 10:34:54 +09:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00