Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: bgmac: Correctly annotate register space

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: f6a95a24957a ("net: ethernet: bgmac: Add platform device support")
Fixes: dd5c5d037f5e ("net: ethernet: bgmac: add NS2 support")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Florian Fainelli and committed by
David S. Miller
16a1c064 6174a30d

+3 -3
+3 -3
drivers/net/ethernet/broadcom/bgmac.h
··· 479 479 struct bgmac { 480 480 union { 481 481 struct { 482 - void *base; 483 - void *idm_base; 484 - void *nicpm_base; 482 + void __iomem *base; 483 + void __iomem *idm_base; 484 + void __iomem *nicpm_base; 485 485 } plat; 486 486 struct { 487 487 struct bcma_device *core;