diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:30 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-04-27 09:38:30 -0400 |
commit | 1dbfeb4bc8fd0276750e5d1d454420f6c2da80e3 (patch) | |
tree | df471b4dd114039007997d1d3b48d5c1ea78848f /drivers/ide/ide.c | |
parent | 9dcba7f2b7697db787741cf6698bf5c95130ffce (diff) |
ide: add "noacpi" / "acpigtf" / "acpionboot" parameters
* Rename ide_noacpi{tfs,onboot} to ide_acpi{gtf,onboot} (+ reverse logic).
* Move ide_*acpi* variables to ide-acpi.c and remove unnecessary initializers.
* Add "noacpi" / "acpigtf" / "acpionboot" parameters.
* Obsolete "ide=noacpi" / "ide=acpigtf" / "ide=acpionboot" kernel parameters.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide.c')
-rw-r--r-- | drivers/ide/ide.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/drivers/ide/ide.c b/drivers/ide/ide.c index a017eb242604..78e49e8461a2 100644 --- a/drivers/ide/ide.c +++ b/drivers/ide/ide.c | |||
@@ -94,12 +94,6 @@ DEFINE_MUTEX(ide_cfg_mtx); | |||
94 | 94 | ||
95 | int noautodma = 0; | 95 | int noautodma = 0; |
96 | 96 | ||
97 | #ifdef CONFIG_BLK_DEV_IDEACPI | ||
98 | int ide_noacpi = 0; | ||
99 | int ide_noacpitfs = 1; | ||
100 | int ide_noacpionboot = 1; | ||
101 | #endif | ||
102 | |||
103 | ide_hwif_t ide_hwifs[MAX_HWIFS]; /* master data repository */ | 97 | ide_hwif_t ide_hwifs[MAX_HWIFS]; /* master data repository */ |
104 | 98 | ||
105 | static void ide_port_init_devices_data(ide_hwif_t *); | 99 | static void ide_port_init_devices_data(ide_hwif_t *); |
@@ -880,17 +874,17 @@ static int __init ide_setup(char *s) | |||
880 | if (!strcmp(s, "ide=noacpi")) { | 874 | if (!strcmp(s, "ide=noacpi")) { |
881 | //printk(" : Disable IDE ACPI support.\n"); | 875 | //printk(" : Disable IDE ACPI support.\n"); |
882 | ide_noacpi = 1; | 876 | ide_noacpi = 1; |
883 | return 1; | 877 | goto obsolete_option; |
884 | } | 878 | } |
885 | if (!strcmp(s, "ide=acpigtf")) { | 879 | if (!strcmp(s, "ide=acpigtf")) { |
886 | //printk(" : Enable IDE ACPI _GTF support.\n"); | 880 | //printk(" : Enable IDE ACPI _GTF support.\n"); |
887 | ide_noacpitfs = 0; | 881 | ide_acpigtf = 1; |
888 | return 1; | 882 | goto obsolete_option; |
889 | } | 883 | } |
890 | if (!strcmp(s, "ide=acpionboot")) { | 884 | if (!strcmp(s, "ide=acpionboot")) { |
891 | //printk(" : Call IDE ACPI methods on boot.\n"); | 885 | //printk(" : Call IDE ACPI methods on boot.\n"); |
892 | ide_noacpionboot = 0; | 886 | ide_acpionboot = 1; |
893 | return 1; | 887 | goto obsolete_option; |
894 | } | 888 | } |
895 | #endif /* CONFIG_BLK_DEV_IDEACPI */ | 889 | #endif /* CONFIG_BLK_DEV_IDEACPI */ |
896 | 890 | ||