aboutsummaryrefslogtreecommitdiff
path: root/drivers/mfd/glamo/glamo-fb.c
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2009-07-01 19:08:22 +0100
committerThomas White <taw@bitwiz.org.uk>2009-07-01 19:08:22 +0100
commit89815f11b50befdcff19dc8cb862549ea057715e (patch)
treea8df3d889b716b9c3389bae2ceeaa931906851a9 /drivers/mfd/glamo/glamo-fb.c
parent11954ff1745ec10e01db1d9b1e2037a5eea848ce (diff)
Compatibility glamo-drm <---> glamo-fb
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
Diffstat (limited to 'drivers/mfd/glamo/glamo-fb.c')
-rw-r--r--drivers/mfd/glamo/glamo-fb.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/drivers/mfd/glamo/glamo-fb.c b/drivers/mfd/glamo/glamo-fb.c
index d9a610eeda4..95d40d25cf7 100644
--- a/drivers/mfd/glamo/glamo-fb.c
+++ b/drivers/mfd/glamo/glamo-fb.c
@@ -996,6 +996,14 @@ static int __init glamofb_probe(struct platform_device *pdev)
goto out_free;
}
+ glamofb->fb_res = request_mem_region(glamofb->fb_res->start,
+ mach_info->fb_mem_size,
+ pdev->name);
+ if (!glamofb->fb_res) {
+ dev_err(&pdev->dev, "failed to request vram region\n");
+ goto out_release_reg;
+ }
+
/* we want to remap only the registers required for this core
* driver. */
glamofb->base = ioremap(glamofb->reg->start, RESSIZE(glamofb->reg));