Skip to content

Commit

Permalink
ax88796 (address space): cast to unsigned long, not long
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Al Viro authored and Linus Torvalds committed Jul 26, 2007
1 parent 5b26e64 commit c7b17cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ax88796.c
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c7b17cb

Please sign in to comment.