ide: make legacy IDE VLB modules check for the "probe" kernel params (v2)
[linux-2.6-block.git] / drivers / ide / legacy / ht6560b.c
index 02d5e20791e3d509af3df0d93d1457514c3309c4..a2832643c522f0cc6805ca497cde92e32fb5fbbc 100644 (file)
@@ -301,12 +301,20 @@ static void tune_ht6560b (ide_drive_t *drive, u8 pio)
 #endif
 }
 
+int probe_ht6560b = 0;
+
+module_param_named(probe, probe_ht6560b, bool, 0);
+MODULE_PARM_DESC(probe, "probe for HT6560B chipset");
+
 /* Can be called directly from ide.c. */
 int __init ht6560b_init(void)
 {
        ide_hwif_t *hwif, *mate;
        int t;
 
+       if (probe_ht6560b == 0)
+               return -ENODEV;
+
        hwif = &ide_hwifs[0];
        mate = &ide_hwifs[1];