diff options
author | Eric Hustvedt <ehustvedt@cecropia.com> | 2006-05-29 04:38:55 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2006-05-29 04:38:55 -0400 |
commit | 65eb2f97db17f6f6a92cad3aad93b531f991ebf1 (patch) | |
tree | 70e7f3025cd2511fca6bf09a512588fbbbfab5c7 /drivers/video/intelfb/intelfbdrv.c | |
parent | f728377f6786bcdf1dbf33394360164e86f40094 (diff) |
intelfb: int option fix
Fix integer option parsing in the intelfb driver. The macro wasn't
accounting for the equal sign past the option name. As a result,
the vram option always returned 0.
Signed-off-by: Eric Hustvedt <ehustvedt@cecropia.com>
Signed-off-by: Dennis Munsie <dmunsie@cecropia.com
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/video/intelfb/intelfbdrv.c')
-rw-r--r-- | drivers/video/intelfb/intelfbdrv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/intelfb/intelfbdrv.c b/drivers/video/intelfb/intelfbdrv.c index e1ac4651adc7..e302d2b742ab 100644 --- a/drivers/video/intelfb/intelfbdrv.c +++ b/drivers/video/intelfb/intelfbdrv.c | |||
@@ -264,7 +264,7 @@ MODULE_PARM_DESC(mode, | |||
264 | 264 | ||
265 | #ifndef MODULE | 265 | #ifndef MODULE |
266 | #define OPT_EQUAL(opt, name) (!strncmp(opt, name, strlen(name))) | 266 | #define OPT_EQUAL(opt, name) (!strncmp(opt, name, strlen(name))) |
267 | #define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name), NULL, 0) | 267 | #define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name) + 1, NULL, 0) |
268 | #define OPT_STRVAL(opt, name) (opt + strlen(name)) | 268 | #define OPT_STRVAL(opt, name) (opt + strlen(name)) |
269 | 269 | ||
270 | static __inline__ char * | 270 | static __inline__ char * |