diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2012-01-12 20:17:34 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-01-12 23:13:03 -0500 |
commit | 08346bf8051c62f92f132eff267e524a7165ee0c (patch) | |
tree | 9f620f41d9e43e53c9965af7c41fc893fb4c1495 | |
parent | 2565409fc0303f3ab8d66b8326702a687962a29b (diff) |
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>
-rw-r--r-- | drivers/video/nvidia/nvidia.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/video/nvidia/nvidia.c b/drivers/video/nvidia/nvidia.c index 081dc4745274..fe13ac567d54 100644 --- a/drivers/video/nvidia/nvidia.c +++ b/drivers/video/nvidia/nvidia.c | |||
@@ -81,7 +81,7 @@ static int vram __devinitdata = 0; | |||
81 | static int bpp __devinitdata = 8; | 81 | static int bpp __devinitdata = 8; |
82 | static int reverse_i2c __devinitdata; | 82 | static int reverse_i2c __devinitdata; |
83 | #ifdef CONFIG_MTRR | 83 | #ifdef CONFIG_MTRR |
84 | static int nomtrr __devinitdata = 0; | 84 | static bool nomtrr __devinitdata = false; |
85 | #endif | 85 | #endif |
86 | #ifdef CONFIG_PMAC_BACKLIGHT | 86 | #ifdef CONFIG_PMAC_BACKLIGHT |
87 | static int backlight __devinitdata = 1; | 87 | static int backlight __devinitdata = 1; |
@@ -1509,7 +1509,7 @@ static int __devinit nvidiafb_setup(char *options) | |||
1509 | backlight = simple_strtoul(this_opt+10, NULL, 0); | 1509 | backlight = simple_strtoul(this_opt+10, NULL, 0); |
1510 | #ifdef CONFIG_MTRR | 1510 | #ifdef CONFIG_MTRR |
1511 | } else if (!strncmp(this_opt, "nomtrr", 6)) { | 1511 | } else if (!strncmp(this_opt, "nomtrr", 6)) { |
1512 | nomtrr = 1; | 1512 | nomtrr = true; |
1513 | #endif | 1513 | #endif |
1514 | } else if (!strncmp(this_opt, "fpdither:", 9)) { | 1514 | } else if (!strncmp(this_opt, "fpdither:", 9)) { |
1515 | fpdither = simple_strtol(this_opt+9, NULL, 0); | 1515 | fpdither = simple_strtol(this_opt+9, NULL, 0); |
@@ -1599,7 +1599,7 @@ MODULE_PARM_DESC(bpp, "pixel width in bits" | |||
1599 | module_param(reverse_i2c, int, 0); | 1599 | module_param(reverse_i2c, int, 0); |
1600 | MODULE_PARM_DESC(reverse_i2c, "reverse port assignment of the i2c bus"); | 1600 | MODULE_PARM_DESC(reverse_i2c, "reverse port assignment of the i2c bus"); |
1601 | #ifdef CONFIG_MTRR | 1601 | #ifdef CONFIG_MTRR |
1602 | module_param(nomtrr, bool, 0); | 1602 | module_param(nomtrr, bool, false); |
1603 | MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) " | 1603 | MODULE_PARM_DESC(nomtrr, "Disables MTRR support (0 or 1=disabled) " |
1604 | "(default=0)"); | 1604 | "(default=0)"); |
1605 | #endif | 1605 | #endif |