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/usb/host/ohci-hcd.c | |
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/usb/host/ohci-hcd.c')
-rw-r--r-- | drivers/usb/host/ohci-hcd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/usb/host/ohci-hcd.c b/drivers/usb/host/ohci-hcd.c index 5f5a6324143..34b9edd8665 100644 --- a/drivers/usb/host/ohci-hcd.c +++ b/drivers/usb/host/ohci-hcd.c | |||
@@ -115,13 +115,13 @@ static inline void sb800_prefetch(struct ohci_hcd *ohci, int on) | |||
115 | 115 | ||
116 | 116 | ||
117 | /* Some boards misreport power switching/overcurrent */ | 117 | /* Some boards misreport power switching/overcurrent */ |
118 | static int distrust_firmware = 1; | 118 | static bool distrust_firmware = 1; |
119 | module_param (distrust_firmware, bool, 0); | 119 | module_param (distrust_firmware, bool, 0); |
120 | MODULE_PARM_DESC (distrust_firmware, | 120 | MODULE_PARM_DESC (distrust_firmware, |
121 | "true to distrust firmware power/overcurrent setup"); | 121 | "true to distrust firmware power/overcurrent setup"); |
122 | 122 | ||
123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ | 123 | /* Some boards leave IR set wrongly, since they fail BIOS/SMM handshakes */ |
124 | static int no_handshake = 0; | 124 | static bool no_handshake = 0; |
125 | module_param (no_handshake, bool, 0); | 125 | module_param (no_handshake, bool, 0); |
126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); | 126 | MODULE_PARM_DESC (no_handshake, "true (not default) disables BIOS handshake"); |
127 | 127 | ||