]> err.no Git - linux-2.6/commitdiff
ax88796 (address space): cast to unsigned long, not long
authorAl Viro <viro@ftp.linux.org.uk>
Thu, 26 Jul 2007 16:36:29 +0000 (17:36 +0100)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 26 Jul 2007 18:11:57 +0000 (11:11 -0700)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Acked-by: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/net/ax88796.c

index 1d882360b34da8ea6cd97488739656d6f9f13e09..e43e8047b90e26b70f8a0e9f7e0d77eedebabc69 100644 (file)
@@ -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",