aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/et131x
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2014-09-02 17:21:12 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-02 10:57:03 -0700
commit1a5a5cbc3986dafc48c1ade21ba5fa2a4bfde5f6 (patch)
treeebc8bfbd677ad4f1981cd3a1a6c7d7fed8169367 /drivers/staging/et131x
parentstaging: comedi: hwdrv_apci1500: miscellaneous cleanup (diff)
downloadlinux-dev-1a5a5cbc3986dafc48c1ade21ba5fa2a4bfde5f6.tar.xz
linux-dev-1a5a5cbc3986dafc48c1ade21ba5fa2a4bfde5f6.zip
staging: et131x: et131x.c: sparse warning of incompatible types
fixed sparse warning: incompatible types in comparison expression (different address spaces) wolw and reg both are being used only for the initialization of the __iomem area. Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/et131x')
-rw-r--r--drivers/staging/et131x/et131x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/et131x/et131x.c b/drivers/staging/et131x/et131x.c
index 52abe33f83c5..1037d931d0e6 100644
--- a/drivers/staging/et131x/et131x.c
+++ b/drivers/staging/et131x/et131x.c
@@ -1135,7 +1135,7 @@ static void et1310_config_rxmac_regs(struct et131x_adapter *adapter)
u32 sa_lo;
u32 sa_hi = 0;
u32 pf_ctrl = 0;
- u32 *wolw;
+ u32 __iomem *wolw;
/* Disable the MAC while it is being configured (also disable WOL) */
writel(0x8, &rxmac->ctrl);
@@ -1255,7 +1255,7 @@ static void et1310_config_txmac_regs(struct et131x_adapter *adapter)
static void et1310_config_macstat_regs(struct et131x_adapter *adapter)
{
struct macstat_regs __iomem *macstat = &adapter->regs->macstat;
- u32 *reg;
+ u32 __iomem *reg;
/* initialize all the macstat registers to zero on the device */
for (reg = &macstat->txrx_0_64_byte_frames;