diff options
author | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:11:43 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-17 15:11:43 -0500 |
commit | f630fe2817601314b2eb7ca5ddc23c7834646731 (patch) | |
tree | 3bfb4939b7bbc3859575ca8b58fa3f929b015941 /drivers/serial/8250_pnp.c | |
parent | 48c871c1f6a7c7044dd76774fb469e65c7e2e4e8 (diff) | |
parent | 8a03d9a498eaf02c8a118752050a5154852c13bf (diff) |
Merge branch 'master' into upstream
Diffstat (limited to 'drivers/serial/8250_pnp.c')
-rw-r--r-- | drivers/serial/8250_pnp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/serial/8250_pnp.c b/drivers/serial/8250_pnp.c index d3d6b82706b5..cde5db44abf6 100644 --- a/drivers/serial/8250_pnp.c +++ b/drivers/serial/8250_pnp.c | |||
@@ -450,11 +450,11 @@ serial_pnp_probe(struct pnp_dev *dev, const struct pnp_device_id *dev_id) | |||
450 | port.dev = &dev->dev; | 450 | port.dev = &dev->dev; |
451 | 451 | ||
452 | line = serial8250_register_port(&port); | 452 | line = serial8250_register_port(&port); |
453 | if (line < 0) | ||
454 | return -ENODEV; | ||
453 | 455 | ||
454 | if (line >= 0) | 456 | pnp_set_drvdata(dev, (void *)((long)line + 1)); |
455 | pnp_set_drvdata(dev, (void *)((long)line + 1)); | 457 | return 0; |
456 | return line >= 0 ? 0 : -ENODEV; | ||
457 | |||
458 | } | 458 | } |
459 | 459 | ||
460 | static void __devexit serial_pnp_remove(struct pnp_dev *dev) | 460 | static void __devexit serial_pnp_remove(struct pnp_dev *dev) |