diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-04 16:31:00 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-03-04 16:31:00 -0500 |
commit | 20b0f65d35ae45d43f363ace3744a775a752d265 (patch) | |
tree | 6085d058cb5ce12bc07368ed897c3689f5239389 /drivers/ide/legacy/ali14xx.c | |
parent | 70077f2fab35ed3d73631fc47d8c572b560ecabd (diff) | |
parent | 849138827c962589ac50496fa7feeb2a2d51b467 (diff) |
Merge master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6
* master.kernel.org:/pub/scm/linux/kernel/git/bart/ide-2.6:
ide: make legacy IDE VLB modules check for the "probe" kernel params (v2)
ide: remove some obsoleted kernel params (v2)
ide/pci/delkin_cb.c: pci_module_init to pci_register_driver
scc_pata: bugfix for checking DMA IRQ status
ide: remove a ton of pointless #undef REALLY_SLOW_IO
siimage: DRAC4 note
adjust legacy IDE resource setting (v2)
ide: fix pmac breakage
ide-cs: Update device table
ide: ide_get_best_pio_mode() returns incorrect IORDY setting (take 2)
piix/slc90e66: more tuneproc() fixing (take 2)
ide: fix drive side 80c cable check, take 2
cmd64x: fix PIO mode setup (take 3)
alim15x3: fix PIO mode setup
Diffstat (limited to 'drivers/ide/legacy/ali14xx.c')
-rw-r--r-- | drivers/ide/legacy/ali14xx.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/drivers/ide/legacy/ali14xx.c b/drivers/ide/legacy/ali14xx.c index 9c544467cb74..91961aa03047 100644 --- a/drivers/ide/legacy/ali14xx.c +++ b/drivers/ide/legacy/ali14xx.c | |||
@@ -37,8 +37,6 @@ | |||
37 | * mode 4 for a while now with no trouble.) -Derek | 37 | * mode 4 for a while now with no trouble.) -Derek |
38 | */ | 38 | */ |
39 | 39 | ||
40 | #undef REALLY_SLOW_IO /* most systems can safely undef this */ | ||
41 | |||
42 | #include <linux/module.h> | 40 | #include <linux/module.h> |
43 | #include <linux/types.h> | 41 | #include <linux/types.h> |
44 | #include <linux/kernel.h> | 42 | #include <linux/kernel.h> |
@@ -230,9 +228,17 @@ static int __init ali14xx_probe(void) | |||
230 | return 0; | 228 | return 0; |
231 | } | 229 | } |
232 | 230 | ||
231 | int probe_ali14xx = 0; | ||
232 | |||
233 | module_param_named(probe, probe_ali14xx, bool, 0); | ||
234 | MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets"); | ||
235 | |||
233 | /* Can be called directly from ide.c. */ | 236 | /* Can be called directly from ide.c. */ |
234 | int __init ali14xx_init(void) | 237 | int __init ali14xx_init(void) |
235 | { | 238 | { |
239 | if (probe_ali14xx == 0) | ||
240 | goto out; | ||
241 | |||
236 | /* auto-detect IDE controller port */ | 242 | /* auto-detect IDE controller port */ |
237 | if (findPort()) { | 243 | if (findPort()) { |
238 | if (ali14xx_probe()) | 244 | if (ali14xx_probe()) |
@@ -240,6 +246,7 @@ int __init ali14xx_init(void) | |||
240 | return 0; | 246 | return 0; |
241 | } | 247 | } |
242 | printk(KERN_ERR "ali14xx: not found.\n"); | 248 | printk(KERN_ERR "ali14xx: not found.\n"); |
249 | out: | ||
243 | return -ENODEV; | 250 | return -ENODEV; |
244 | } | 251 | } |
245 | 252 | ||