Commit 6b8ed7d3 authored by Adam Belay's avatar Adam Belay Committed by Russell King

[PCMCIA] Fix PnP Probing in i82365.c

pnp_x_valid returns 1 if valid.  Therefore we should be using
!pnp_port_valid.  Also cleans up some formatting issues.
parent 21fbda93
...@@ -795,16 +795,14 @@ static void __init isa_probe(void) ...@@ -795,16 +795,14 @@ static void __init isa_probe(void)
if (pnp_device_attach(dev) < 0) if (pnp_device_attach(dev) < 0)
continue; continue;
printk("PNP ");
if (pnp_activate_dev(dev) < 0) { if (pnp_activate_dev(dev) < 0) {
printk("activate failed\n"); printk("activate failed\n");
pnp_device_detach(dev); pnp_device_detach(dev);
break; break;
} }
if (pnp_port_valid(dev, 0)) { if (!pnp_port_valid(dev, 0)) {
printk("invalid resources ?\n"); printk("invalid resources ?\n");
pnp_device_detach(dev); pnp_device_detach(dev);
break; break;
......
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