aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video/msm/mdp.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video/msm/mdp.c')
-rw-r--r--drivers/video/msm/mdp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/video/msm/mdp.c b/drivers/video/msm/mdp.c
index c3636d55a3c5..243d16f09b8a 100644
--- a/drivers/video/msm/mdp.c
+++ b/drivers/video/msm/mdp.c
@@ -406,8 +406,7 @@ int mdp_probe(struct platform_device *pdev)
406 goto error_get_irq; 406 goto error_get_irq;
407 } 407 }
408 408
409 mdp->base = ioremap(resource->start, 409 mdp->base = ioremap(resource->start, resource_size(resource));
410 resource->end - resource->start);
411 if (mdp->base == 0) { 410 if (mdp->base == 0) {
412 printk(KERN_ERR "msmfb: cannot allocate mdp regs!\n"); 411 printk(KERN_ERR "msmfb: cannot allocate mdp regs!\n");
413 ret = -ENOMEM; 412 ret = -ENOMEM;