From: Krzysztof Helt This patch fixes compilation with setup options bug and corrects description of the nomtrr option. Signed-off-by: Krzysztof Helt Signed-off-by: Andrew Morton --- drivers/video/tdfxfb.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff -puN drivers/video/tdfxfb.c~tdfxfb-mtrr-support-fix-2 drivers/video/tdfxfb.c --- a/drivers/video/tdfxfb.c~tdfxfb-mtrr-support-fix-2 +++ a/drivers/video/tdfxfb.c @@ -1337,8 +1337,8 @@ static void tdfxfb_setup(char *options) nopan = 1; } else if (!strcmp(this_opt, "nowrap")) { nowrap = 1; - } else if (!strcmp(this_opt, "hwcursor")) { - hwcursor = simple_strtoul(opt + 9, NULL, 0); + } else if (!strncmp(this_opt, "hwcursor=", 9)) { + hwcursor = simple_strtoul(this_opt + 9, NULL, 0); #ifdef CONFIG_MTRR } else if (!strncmp(this_opt, "nomtrr", 6)) { nomtrr = 1; @@ -1409,7 +1409,7 @@ MODULE_PARM_DESC(hwcursor, "Enable hardw "(1=enable, 0=disable, default=1)"); #ifdef CONFIG_MTRR module_param(nomtrr, bool, 0); -MODULE_PARM_DESC(nomtrr, "Disable MTRR support (0 or 1=disabled) (default=0)"); +MODULE_PARM_DESC(nomtrr, "Disable MTRR support (default: enabled)"); #endif module_init(tdfxfb_init); _