From: Al Viro Date: Thu, 26 Jul 2007 16:36:29 +0000 (+0100) Subject: ax88796 (address space): cast to unsigned long, not long X-Git-Tag: v2.6.23-rc2~235 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b17cb13eaad6adf2f169840ccb193d4376e4b1;p=linux-2.6 ax88796 (address space): cast to unsigned long, not long Signed-off-by: Al Viro Acked-by: Jeff Garzik Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/ax88796.c b/drivers/net/ax88796.c index 1d882360b3..e43e8047b9 100644 --- a/drivers/net/ax88796.c +++ b/drivers/net/ax88796.c @@ -819,7 +819,7 @@ static int ax_probe(struct platform_device *pdev) } ei_status.mem = ioremap(res->start, size); - dev->base_addr = (long)ei_status.mem; + dev->base_addr = (unsigned long)ei_status.mem; if (ei_status.mem == NULL) { dev_err(&pdev->dev, "Cannot ioremap area (%08zx,%08zx)\n",