net: bgmac: Correctly annotate register space
[ Upstream commit16a1c0646e
] All the members: base, idm_base and nicpm_base should be annotated with __iomem since they are pointers to register space. This fixes a bunch of sparse reported warnings. Fixes:f6a95a2495
("net: ethernet: bgmac: Add platform device support") Fixes:dd5c5d037f
("net: ethernet: bgmac: add NS2 support") Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <alexander.levin@microsoft.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
435290f7a4
commit
305f25c1ed
@ -479,9 +479,9 @@ struct bgmac_rx_header {
|
|||||||
struct bgmac {
|
struct bgmac {
|
||||||
union {
|
union {
|
||||||
struct {
|
struct {
|
||||||
void *base;
|
void __iomem *base;
|
||||||
void *idm_base;
|
void __iomem *idm_base;
|
||||||
void *nicpm_base;
|
void __iomem *nicpm_base;
|
||||||
} plat;
|
} plat;
|
||||||
struct {
|
struct {
|
||||||
struct bcma_device *core;
|
struct bcma_device *core;
|
||||||
|
Reference in New Issue
Block a user