diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2013-05-09 08:48:54 +0000 |
---|---|---|
committer | Jon Medhurst <tixy@linaro.org> | 2013-07-01 11:04:35 +0100 |
commit | f8b1ed7161bfa027a96775129e9dc34f7853d480 (patch) | |
tree | 62b9eb7c769e326900b3ad9ae4dfdde56fbcc1f1 /drivers | |
parent | 85705038621c022cffc4e36b3b60720d5dd421ec (diff) |
net: smc91x: Do not cast pointer to int
The patch removes a compiler warning when casting the ioaddr pointer to
(unsigned int) in the smc_probe() function of the smc91x.c driver. The
casting is now done to (unsigned long).
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/smsc/smc91x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/smsc/smc91x.c b/drivers/net/ethernet/smsc/smc91x.c index dfbf978315d..bdd703c6bf1 100644 --- a/drivers/net/ethernet/smsc/smc91x.c +++ b/drivers/net/ethernet/smsc/smc91x.c @@ -1896,7 +1896,7 @@ static int smc_probe(struct net_device *dev, void __iomem *ioaddr, SMC_SELECT_BANK(lp, 1); val = SMC_GET_BASE(lp); val = ((val & 0x1F00) >> 3) << SMC_IO_SHIFT; - if (((unsigned int)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { + if (((unsigned long)ioaddr & (0x3e0 << SMC_IO_SHIFT)) != val) { printk("%s: IOADDR %p doesn't match configuration (%x).\n", CARDNAME, ioaddr, val); } |