Revert "ide: Fix interface autodetection in legacy IDE driver (trial #2)"
authorDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 20:27:59 +0000 (15:27 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Jan 2017 20:27:59 +0000 (15:27 -0500)
This reverts commit b2ae75052a8c1611b2030fa49ba1c6b6439fa04f.

The inverse logic is intentional, and this change even breaks
booting on some systems.

Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-generic.c

index 419818a39c270d3ad219e8f7b5df56a9aea3d640..54d7c4685d23aa5e62ce606e7b994a57bb54b08a 100644 (file)
@@ -96,10 +96,10 @@ static int __init ide_generic_init(void)
                printk(KERN_INFO DRV_NAME ": please use \"probe_mask=0x3f\" "
                     "module parameter for probing all legacy ISA IDE ports\n");
 
-               if (primary)
+               if (primary == 0)
                        probe_mask |= 0x1;
 
-               if (secondary)
+               if (secondary == 0)
                        probe_mask |= 0x2;
        } else
                printk(KERN_INFO DRV_NAME ": enforcing probing of I/O ports "