forked from luck/tmp_suning_uos_patched
drivers/video/nvidia/nvidia.c: fix warning
Fix the int/bool confusion in there. drivers/video/nvidia/nvidia.c:1602: warning: return from incompatible pointer type Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
2565409fc0
commit
08346bf805
|
@ -81,7 +81,7 @@ static int vram __devinitdata = 0;
|
||||||
static int bpp __devinitdata = 8;
|
static int bpp __devinitdata = 8;
|
||||||
static int reverse_i2c __devinitdata;
|
static int reverse_i2c __devinitdata;
|
||||||
#ifdef CONFIG_MTRR
|
#ifdef CONFIG_MTRR
|
||||||
static int nomtrr __devinitdata = 0;
|
static bool nomtrr __devinitdata = false;
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_PMAC_BACKLIGHT
|
#ifdef CONFIG_PMAC_BACKLIGHT
|
||||||
static int backlight __devinitdata = 1;
|
static int backlight __devinitdata = 1;
|
||||||
|
@ -1509,7 +1509,7 @@ static int __devinit nvidiafb_setup(char *options)
|
||||||
backlight = simple_strtoul(this_opt+10, NULL, 0);
|
backlight = simple_strtoul(this_opt+10, NULL, 0);
|
||||||
#ifdef CONFIG_MTRR
|
#ifdef CONFIG_MTRR
|
||||||
} else if (!strncmp(this_opt, "nomtrr", 6)) {
|
} else if (!strncmp(this_opt, "nomtrr", 6)) {
|
||||||
nomtrr = 1;
|
nomtrr = true;
|
||||||
#endif
|
#endif
|
||||||
} else if (!strncmp(this_opt, "fpdither:", 9)) {
|
} else if (!strncmp(this_opt, "fpdither:", 9)) {
|
||||||
fpdither = simple_strtol(this_opt+9, NULL, 0);
|
fpdither = simple_strtol(this_opt+9, NULL, 0);
|
||||||
|
@ -1599,7 +1599,7 @@ MODULE_PARM_DESC(bpp, "pixel width in bits"
|
||||||
module_param(reverse_i2c, int, 0);
|
module_param(reverse_i2c, int, 0);
|
||||||
MODULE_PARM_DESC(reverse_i2c, "reverse port assignment of the i2c bus");
|
MODULE_PARM_DESC(reverse_i2c, "reverse port assignment of the i2c bus");
|
||||||
#ifdef CONFIG_MTRR
|
#ifdef CONFIG_MTRR
|
||||||
module_param(nomtrr, bool, 0);
|
module_param(nomtrr, bool, false);
|
||||||
MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) "
|
MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) "
|
||||||
"(default=0)");
|
"(default=0)");
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue
Block a user