Skip to content

Commit

Permalink
OMAP: DSS2: VRAM: Fix early_param for vram
Browse files Browse the repository at this point in the history
In commit 2b0d8c2 the __early_param is
replaced with the generic early_param. This patch fixes the parameter passing
for the vram.

Signed-off-by: Thomas Weber <weber@corscience.de>
[tomi.valkeinen@nokia.com: changed the commit prefix]
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@nokia.com>
  • Loading branch information
Thomas Weber authored and Tomi Valkeinen committed Mar 10, 2010
1 parent 57d5488 commit 5c1f96f
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions drivers/video/omap2/vram.c
Original file line number Diff line number Diff line change
Expand Up @@ -511,13 +511,14 @@ static u32 omap_vram_sdram_size __initdata;
static u32 omap_vram_def_sdram_size __initdata;
static u32 omap_vram_def_sdram_start __initdata;

static void __init omap_vram_early_vram(char **p)
static int __init omap_vram_early_vram(char *p)
{
omap_vram_def_sdram_size = memparse(*p, p);
if (**p == ',')
omap_vram_def_sdram_start = simple_strtoul((*p) + 1, p, 16);
omap_vram_def_sdram_size = memparse(p, &p);
if (*p == ',')
omap_vram_def_sdram_start = simple_strtoul(p + 1, &p, 16);
return 0;
}
__early_param("vram=", omap_vram_early_vram);
early_param("vram", omap_vram_early_vram);

/*
* Called from map_io. We need to call to this early enough so that we
Expand Down

0 comments on commit 5c1f96f

Please sign in to comment.