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/video/aty | |
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/video/aty')
-rw-r--r-- | drivers/video/aty/atyfb_base.c | 4 | ||||
-rw-r--r-- | drivers/video/aty/radeon_base.c | 18 |
2 files changed, 11 insertions, 11 deletions
diff --git a/drivers/video/aty/atyfb_base.c b/drivers/video/aty/atyfb_base.c index 44bdce4242ad..622f12b62a47 100644 --- a/drivers/video/aty/atyfb_base.c +++ b/drivers/video/aty/atyfb_base.c | |||
@@ -301,9 +301,9 @@ static struct fb_ops atyfb_ops = { | |||
301 | .fb_sync = atyfb_sync, | 301 | .fb_sync = atyfb_sync, |
302 | }; | 302 | }; |
303 | 303 | ||
304 | static int noaccel; | 304 | static bool noaccel; |
305 | #ifdef CONFIG_MTRR | 305 | #ifdef CONFIG_MTRR |
306 | static int nomtrr; | 306 | static bool nomtrr; |
307 | #endif | 307 | #endif |
308 | static int vram; | 308 | static int vram; |
309 | static int pll; | 309 | static int pll; |
diff --git a/drivers/video/aty/radeon_base.c b/drivers/video/aty/radeon_base.c index 150684882ef7..ce1506b75adf 100644 --- a/drivers/video/aty/radeon_base.c +++ b/drivers/video/aty/radeon_base.c | |||
@@ -263,19 +263,19 @@ static reg_val common_regs[] = { | |||
263 | 263 | ||
264 | static char *mode_option; | 264 | static char *mode_option; |
265 | static char *monitor_layout; | 265 | static char *monitor_layout; |
266 | static int noaccel = 0; | 266 | static bool noaccel = 0; |
267 | static int default_dynclk = -2; | 267 | static int default_dynclk = -2; |
268 | static int nomodeset = 0; | 268 | static bool nomodeset = 0; |
269 | static int ignore_edid = 0; | 269 | static bool ignore_edid = 0; |
270 | static int mirror = 0; | 270 | static bool mirror = 0; |
271 | static int panel_yres = 0; | 271 | static int panel_yres = 0; |
272 | static int force_dfp = 0; | 272 | static bool force_dfp = 0; |
273 | static int force_measure_pll = 0; | 273 | static bool force_measure_pll = 0; |
274 | #ifdef CONFIG_MTRR | 274 | #ifdef CONFIG_MTRR |
275 | static int nomtrr = 0; | 275 | static bool nomtrr = 0; |
276 | #endif | 276 | #endif |
277 | static int force_sleep; | 277 | static bool force_sleep; |
278 | static int ignore_devlist; | 278 | static bool ignore_devlist; |
279 | #ifdef CONFIG_PMAC_BACKLIGHT | 279 | #ifdef CONFIG_PMAC_BACKLIGHT |
280 | static int backlight = 1; | 280 | static int backlight = 1; |
281 | #else | 281 | #else |