aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
committerRusty Russell <rusty@rustcorp.com.au>2012-01-12 18:02:20 -0500
commit90ab5ee94171b3e28de6bb42ee30b527014e0be7 (patch)
treefcf89889f6e881f2b231d3d20287c08174ce4b54 /drivers/ide
parent476bc0015bf09dad39d36a8b19f76f0c181d1ec9 (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.c2
-rw-r--r--drivers/ide/cmd640.c2
-rw-r--r--drivers/ide/dtc2278.c2
-rw-r--r--drivers/ide/gayle.c2
-rw-r--r--drivers/ide/ht6560b.c2
-rw-r--r--drivers/ide/ide-4drives.c2
-rw-r--r--drivers/ide/ide-acpi.c6
-rw-r--r--drivers/ide/ide-pci-generic.c2
-rw-r--r--drivers/ide/qd65xx.c2
-rw-r--r--drivers/ide/umc8672.c2
10 files changed, 12 insertions, 12 deletions
diff --git a/drivers/ide/ali14xx.c b/drivers/ide/ali14xx.c
index 25b9fe3a9f8..d3be99fb415 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
224static int probe_ali14xx; 224static bool probe_ali14xx;
225 225
226module_param_named(probe, probe_ali14xx, bool, 0); 226module_param_named(probe, probe_ali14xx, bool, 0);
227MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets"); 227MODULE_PARM_DESC(probe, "probe for ALI M14xx chipsets");
diff --git a/drivers/ide/cmd640.c b/drivers/ide/cmd640.c
index a81bd757579..14717304b38 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
114static int cmd640_vlb; 114static 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 6929f7fce93..46af4743b3e 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
133static int probe_dtc2278; 133static bool probe_dtc2278;
134 134
135module_param_named(probe, probe_dtc2278, bool, 0); 135module_param_named(probe, probe_dtc2278, bool, 0);
136MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets"); 136MODULE_PARM_DESC(probe, "probe for DTC2278xx chipsets");
diff --git a/drivers/ide/gayle.c b/drivers/ide/gayle.c
index 3feaa26410b..51beb85250d 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
53static int ide_doubler; 53static bool ide_doubler;
54module_param_named(doubler, ide_doubler, bool, 0); 54module_param_named(doubler, ide_doubler, bool, 0);
55MODULE_PARM_DESC(doubler, "enable support for IDE doublers"); 55MODULE_PARM_DESC(doubler, "enable support for IDE doublers");
56 56
diff --git a/drivers/ide/ht6560b.c b/drivers/ide/ht6560b.c
index 808bcdcbf8e..986f2513eab 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
320static int probe_ht6560b; 320static bool probe_ht6560b;
321 321
322module_param_named(probe, probe_ht6560b, bool, 0); 322module_param_named(probe, probe_ht6560b, bool, 0);
323MODULE_PARM_DESC(probe, "probe for HT6560B chipset"); 323MODULE_PARM_DESC(probe, "probe for HT6560B chipset");
diff --git a/drivers/ide/ide-4drives.c b/drivers/ide/ide-4drives.c
index 979d342c338..547d7cf2e01 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
9static int probe_4drives; 9static bool probe_4drives;
10 10
11module_param_named(probe, probe_4drives, bool, 0); 11module_param_named(probe, probe_4drives, bool, 0);
12MODULE_PARM_DESC(probe, "probe for generic IDE chipset with 4 drives/port"); 12MODULE_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 f22edc66b03..f1a6796b165 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
56static int ide_noacpi; 56static bool ide_noacpi;
57module_param_named(noacpi, ide_noacpi, bool, 0); 57module_param_named(noacpi, ide_noacpi, bool, 0);
58MODULE_PARM_DESC(noacpi, "disable IDE ACPI support"); 58MODULE_PARM_DESC(noacpi, "disable IDE ACPI support");
59 59
60static int ide_acpigtf; 60static bool ide_acpigtf;
61module_param_named(acpigtf, ide_acpigtf, bool, 0); 61module_param_named(acpigtf, ide_acpigtf, bool, 0);
62MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support"); 62MODULE_PARM_DESC(acpigtf, "enable IDE ACPI _GTF support");
63 63
64static int ide_acpionboot; 64static bool ide_acpionboot;
65module_param_named(acpionboot, ide_acpionboot, bool, 0); 65module_param_named(acpionboot, ide_acpionboot, bool, 0);
66MODULE_PARM_DESC(acpionboot, "call IDE ACPI methods on boot"); 66MODULE_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 a743e68a890..7f56b738d76 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
31static int ide_generic_all; /* Set to claim all devices */ 31static bool ide_generic_all; /* Set to claim all devices */
32 32
33module_param_named(all_generic_ide, ide_generic_all, bool, 0444); 33module_param_named(all_generic_ide, ide_generic_all, bool, 0444);
34MODULE_PARM_DESC(all_generic_ide, "IDE generic will claim all unknown PCI IDE storage controllers."); 34MODULE_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 3f0244fd8e6..8bbfe5557c7 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
420static int probe_qd65xx; 420static bool probe_qd65xx;
421 421
422module_param_named(probe, probe_qd65xx, bool, 0); 422module_param_named(probe, probe_qd65xx, bool, 0);
423MODULE_PARM_DESC(probe, "probe for QD65xx chipsets"); 423MODULE_PARM_DESC(probe, "probe for QD65xx chipsets");
diff --git a/drivers/ide/umc8672.c b/drivers/ide/umc8672.c
index 47adcd09cb2..5cfb7812066 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
163static int probe_umc8672; 163static bool probe_umc8672;
164 164
165module_param_named(probe, probe_umc8672, bool, 0); 165module_param_named(probe, probe_umc8672, bool, 0);
166MODULE_PARM_DESC(probe, "probe for UMC8672 chipset"); 166MODULE_PARM_DESC(probe, "probe for UMC8672 chipset");