Commit 57b5328d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] 8250_pnp: 64bit warning fix

drivers/serial/8250_pnp.c: In function `serial_pnp_probe':
drivers/serial/8250_pnp.c:424: warning: cast to pointer from integer of different size
drivers/serial/8250_pnp.c: In function `serial_pnp_remove':
drivers/serial/8250_pnp.c:431: warning: cast from pointer to integer of different size

Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Adam Belay <ambx1@neo.rr.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ac108f99
......@@ -421,14 +421,14 @@ serial_pnp_probe(struct pnp_dev * dev, const struct pnp_device_id *dev_id)
line = serial8250_register_port(&port);
if (line >= 0)
pnp_set_drvdata(dev, (void *)(line + 1));
pnp_set_drvdata(dev, (void *)((long)line + 1));
return line >= 0 ? 0 : -ENODEV;
}
static void __devexit serial_pnp_remove(struct pnp_dev * dev)
{
int line = (int)pnp_get_drvdata(dev);
long line = (long)pnp_get_drvdata(dev);
if (line)
serial8250_unregister_port(line - 1);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment