summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorWu Guoxing <b02248@freescale.com>2010-04-09 16:57:55 +0800
committerWu Guoxing <b02248@freescale.com>2010-04-14 10:02:51 +0800
commit4c443d7f74f3f8f09b5b6c3149c88f2fe2275db0 (patch)
treebfdee9a9893198a64d73f97bd659a93668e9b7ab /drivers
parent976a44d4c493091490d685ebda49659f6e55e5b9 (diff)
ENGR00122151 reserve gpu memory in kernel
add a new kernel command "gpu_memory" to reserve gpu memory in kernel Signed-off-by:Wu Guoxing <b02248@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/video/mxc/mxc_ipuv3_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/video/mxc/mxc_ipuv3_fb.c b/drivers/video/mxc/mxc_ipuv3_fb.c
index 150e59329fb7..3d6202507d30 100644
--- a/drivers/video/mxc/mxc_ipuv3_fb.c
+++ b/drivers/video/mxc/mxc_ipuv3_fb.c
@@ -1557,7 +1557,7 @@ static int mxcfb_probe(struct platform_device *pdev)
ipu_disable_irq(mxcfbi->ipu_ch_irq);
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
- if (res) {
+ if (res && res->end) {
fbi->fix.smem_len = res->end - res->start + 1;
fbi->fix.smem_start = res->start;
fbi->screen_base = ioremap(fbi->fix.smem_start, fbi->fix.smem_len);
@@ -1589,7 +1589,7 @@ static int mxcfb_probe(struct platform_device *pdev)
mxcfb_set_fix(fbi);
/* alocate fb first */
- if (!res)
+ if (!res || !res->end)
if (mxcfb_map_video_memory(fbi) < 0)
return -ENOMEM;