diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-01-12 18:02:20 -0500 |
commit | 90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch) | |
tree | fcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/ide | |
parent | 476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (diff) |
module_param: make bool parameters really bool (drivers & misc)
module_param(bool) used to counter-intuitively take an int. In
fddd5201 (mid-2009) we allowed bool or int/unsigned int using a messy
trick.
It's time to remove the int/unsigned int option. For this version
it'll simply give a warning, but it'll break next kernel version.
Acked-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'drivers/ide')
-rw-r--r-- | drivers/ide/ali14xx.c | 2 | ||||
-rw-r--r-- | drivers/ide/cmd640.c | 2 | ||||
-rw-r--r-- | drivers/ide/dtc2278.c | 2 | ||||
-rw-r--r-- | drivers/ide/gayle.c | 2 | ||||
-rw-r--r-- | drivers/ide/ht6560b.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-4drives.c | 2 | ||||
-rw-r--r-- | drivers/ide/ide-acpi.c | 6 | ||||
-rw-r--r-- | drivers/ide/ide-pci-generic.c | 2 | ||||
-rw-r--r-- | drivers/ide/qd65xx.c | 2 | ||||
-rw-r--r-- | drivers/ide/umc8672.c | 2 |
10 files changed, 12 insertions, 12 deletions
diff --git a/drivers/ide/ali14xx.c b/drivers/ide/ali14xx.c index 25b9fe3a9f8e..d3be99fb4154 100644 --- a/drivers/ide/ali14xx.c +++ b/drivers/ide/ali14xx.c | |||
@@ -221,7 +221,7 @@ static int __init ali14xx_probe(void) | |||
221 | return ide_legacy_device_add(&ali14xx_port_info, 0); | 221 | return ide_legacy_device_add(&ali14xx_port_info, 0); |
222 | } | 222 | } |
223 | 223 | ||
224 | static int probe_ali14xx; | 224 | static bool probe_ali14xx; |
225 | 225 | ||
226 | module_param_named(probe, probe_ali14xx, bool, 0); | 226 | module_param_named(probe, probe_ali14xx, bool, 0); |
227 | MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets"); | 227 | MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets"); |
diff --git a/drivers/ide/cmd640.c b/drivers/ide/cmd640.c index a81bd7575792..14717304b388 100644 --- a/drivers/ide/cmd640.c +++ b/drivers/ide/cmd640.c | |||
@@ -111,7 +111,7 @@ | |||
111 | 111 | ||
112 | #define DRV_NAME "cmd640" | 112 | #define DRV_NAME "cmd640" |
113 | 113 | ||
114 | static int cmd640_vlb; | 114 | static bool cmd640_vlb; |
115 | 115 | ||
116 | /* | 116 | /* |
117 | * CMD640 specific registers definition. | 117 | * CMD640 specific registers definition. |
diff --git a/drivers/ide/dtc2278.c b/drivers/ide/dtc2278.c index 6929f7fce93a..46af4743b3e6 100644 --- a/drivers/ide/dtc2278.c +++ b/drivers/ide/dtc2278.c | |||
@@ -130,7 +130,7 @@ static int __init dtc2278_probe(void) | |||
130 | return ide_legacy_device_add(&dtc2278_port_info, 0); | 130 | return ide_legacy_device_add(&dtc2278_port_info, 0); |
131 | } | 131 | } |
132 | 132 | ||
133 | static int probe_dtc2278; | 133 | static bool probe_dtc2278; |
134 | 134 | ||
135 | module_param_named(probe, probe_dtc2278, bool, 0); | 135 | module_param_named(probe, probe_dtc2278, bool, 0); |
136 | MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets"); | 136 | MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets"); |
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c index 3feaa26410be..51beb85250d4 100644 --- a/drivers/ide/gayle.c +++ b/drivers/ide/gayle.c | |||
@@ -50,7 +50,7 @@ | |||
50 | GAYLE_NUM_HWIFS-1) | 50 | GAYLE_NUM_HWIFS-1) |
51 | #define GAYLE_HAS_CONTROL_REG (!ide_doubler) | 51 | #define GAYLE_HAS_CONTROL_REG (!ide_doubler) |
52 | 52 | ||
53 | static int ide_doubler; | 53 | static bool ide_doubler; |
54 | module_param_named(doubler, ide_doubler, bool, 0); | 54 | module_param_named(doubler, ide_doubler, bool, 0); |
55 | MODULE_PARM_DESC(doubler, "enable support for IDE doublers"); | 55 | MODULE_PARM_DESC(doubler, "enable support for IDE doublers"); |
56 | 56 | ||
diff --git a/drivers/ide/ht6560b.c b/drivers/ide/ht6560b.c index 808bcdcbf8e1..986f2513eab4 100644 --- a/drivers/ide/ht6560b.c +++ b/drivers/ide/ht6560b.c | |||
@@ -317,7 +317,7 @@ static void __init ht6560b_init_dev(ide_drive_t *drive) | |||
317 | ide_set_drivedata(drive, (void *)t); | 317 | ide_set_drivedata(drive, (void *)t); |
318 | } | 318 | } |
319 | 319 | ||
320 | static int probe_ht6560b; | 320 | static bool probe_ht6560b; |
321 | 321 | ||
322 | module_param_named(probe, probe_ht6560b, bool, 0); | 322 | module_param_named(probe, probe_ht6560b, bool, 0); |
323 | MODULE_PARM_DESC(probe, "probe for HT6560B chipset"); | 323 | MODULE_PARM_DESC(probe, "probe for HT6560B chipset"); |
diff --git a/drivers/ide/ide-4drives.c b/drivers/ide/ide-4drives.c index 979d342c338a..547d7cf2e016 100644 --- a/drivers/ide/ide-4drives.c +++ b/drivers/ide/ide-4drives.c | |||
@@ -6,7 +6,7 @@ | |||
6 | 6 | ||
7 | #define DRV_NAME "ide-4drives" | 7 | #define DRV_NAME "ide-4drives" |
8 | 8 | ||
9 | static int probe_4drives; | 9 | static bool probe_4drives; |
10 | 10 | ||
11 | module_param_named(probe, probe_4drives, bool, 0); | 11 | module_param_named(probe, probe_4drives, bool, 0); |
12 | MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port"); | 12 | MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port"); |
diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c index f22edc66b030..f1a6796b165c 100644 --- a/drivers/ide/ide-acpi.c +++ b/drivers/ide/ide-acpi.c | |||
@@ -53,15 +53,15 @@ struct ide_acpi_hwif_link { | |||
53 | #define DEBPRINT(fmt, args...) do {} while (0) | 53 | #define DEBPRINT(fmt, args...) do {} while (0) |
54 | #endif /* DEBUGGING */ | 54 | #endif /* DEBUGGING */ |
55 | 55 | ||
56 | static int ide_noacpi; | 56 | static bool ide_noacpi; |
57 | module_param_named(noacpi, ide_noacpi, bool, 0); | 57 | module_param_named(noacpi, ide_noacpi, bool, 0); |
58 | MODULE_PARM_DESC(noacpi, "disable IDE ACPI support"); | 58 | MODULE_PARM_DESC(noacpi, "disable IDE ACPI support"); |
59 | 59 | ||
60 | static int ide_acpigtf; | 60 | static bool ide_acpigtf; |
61 | module_param_named(acpigtf, ide_acpigtf, bool, 0); | 61 | module_param_named(acpigtf, ide_acpigtf, bool, 0); |
62 | MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support"); | 62 | MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support"); |
63 | 63 | ||
64 | static int ide_acpionboot; | 64 | static bool ide_acpionboot; |
65 | module_param_named(acpionboot, ide_acpionboot, bool, 0); | 65 | module_param_named(acpionboot, ide_acpionboot, bool, 0); |
66 | MODULE_PARM_DESC(acpionboot, "call IDE ACPI methods on boot"); | 66 | MODULE_PARM_DESC(acpionboot, "call IDE ACPI methods on boot"); |
67 | 67 | ||
diff --git a/drivers/ide/ide-pci-generic.c b/drivers/ide/ide-pci-generic.c index a743e68a8903..7f56b738d762 100644 --- a/drivers/ide/ide-pci-generic.c +++ b/drivers/ide/ide-pci-generic.c | |||
@@ -28,7 +28,7 @@ | |||
28 | 28 | ||
29 | #define DRV_NAME "ide_pci_generic" | 29 | #define DRV_NAME "ide_pci_generic" |
30 | 30 | ||
31 | static int ide_generic_all; /* Set to claim all devices */ | 31 | static bool ide_generic_all; /* Set to claim all devices */ |
32 | 32 | ||
33 | module_param_named(all_generic_ide, ide_generic_all, bool, 0444); | 33 | module_param_named(all_generic_ide, ide_generic_all, bool, 0444); |
34 | MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); | 34 | MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); |
diff --git a/drivers/ide/qd65xx.c b/drivers/ide/qd65xx.c index 3f0244fd8e62..8bbfe5557c7b 100644 --- a/drivers/ide/qd65xx.c +++ b/drivers/ide/qd65xx.c | |||
@@ -417,7 +417,7 @@ static int __init qd_probe(int base) | |||
417 | return rc; | 417 | return rc; |
418 | } | 418 | } |
419 | 419 | ||
420 | static int probe_qd65xx; | 420 | static bool probe_qd65xx; |
421 | 421 | ||
422 | module_param_named(probe, probe_qd65xx, bool, 0); | 422 | module_param_named(probe, probe_qd65xx, bool, 0); |
423 | MODULE_PARM_DESC(probe, "probe for QD65xx chipsets"); | 423 | MODULE_PARM_DESC(probe, "probe for QD65xx chipsets"); |
diff --git a/drivers/ide/umc8672.c b/drivers/ide/umc8672.c index 47adcd09cb26..5cfb78120669 100644 --- a/drivers/ide/umc8672.c +++ b/drivers/ide/umc8672.c | |||
@@ -160,7 +160,7 @@ static int __init umc8672_probe(void) | |||
160 | return ide_legacy_device_add(&umc8672_port_info, 0); | 160 | return ide_legacy_device_add(&umc8672_port_info, 0); |
161 | } | 161 | } |
162 | 162 | ||
163 | static int probe_umc8672; | 163 | static bool probe_umc8672; |
164 | 164 | ||
165 | module_param_named(probe, probe_umc8672, bool, 0); | 165 | module_param_named(probe, probe_umc8672, bool, 0); |
166 | MODULE_PARM_DESC(probe, "probe for UMC8672 chipset"); | 166 | MODULE_PARM_DESC(probe, "probe for UMC8672 chipset"); |