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 <[email protected]>
Signed-off-by: Dennis Munsie <[email protected]
Signed-off-by: Dave Airlie <[email protected]>
This commit is contained in:
Eric Hustvedt 2006-05-29 18:38:55 +10:00 • committed by Dave Airlie
commit 65eb2f97db

View file

@ -264,7 +264,7 @@ MODULE_PARM_DESC(mode,
#ifndef MODULE
#define OPT_EQUAL(opt, name) (!strncmp(opt, name, strlen(name)))
#define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name), NULL, 0)
#define OPT_INTVAL(opt, name) simple_strtoul(opt + strlen(name) + 1, NULL, 0)
#define OPT_STRVAL(opt, name) (opt + strlen(name))
static __inline__ char *