aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide/legacy/ali14xx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/legacy/ali14xx.c')
-rw-r--r--drivers/ide/legacy/ali14xx.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/ide/legacy/ali14xx.c b/drivers/ide/legacy/ali14xx.c
index f9f5b8d54d6d..91961aa03047 100644
--- a/drivers/ide/legacy/ali14xx.c
+++ b/drivers/ide/legacy/ali14xx.c
@@ -228,9 +228,17 @@ static int __init ali14xx_probe(void)
228 return 0; 228 return 0;
229} 229}
230 230
231int probe_ali14xx = 0;
232
233module_param_named(probe, probe_ali14xx, bool, 0);
234MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets");
235
231/* Can be called directly from ide.c. */ 236/* Can be called directly from ide.c. */
232int __init ali14xx_init(void) 237int __init ali14xx_init(void)
233{ 238{
239 if (probe_ali14xx == 0)
240 goto out;
241
234 /* auto-detect IDE controller port */ 242 /* auto-detect IDE controller port */
235 if (findPort()) { 243 if (findPort()) {
236 if (ali14xx_probe()) 244 if (ali14xx_probe())
@@ -238,6 +246,7 @@ int __init ali14xx_init(void)
238 return 0; 246 return 0;
239 } 247 }
240 printk(KERN_ERR "ali14xx: not found.\n"); 248 printk(KERN_ERR "ali14xx: not found.\n");
249out:
241 return -ENODEV; 250 return -ENODEV;
242} 251}
243 252