diff options
-rw-r--r-- | drivers/mfd/glamo/glamo-drm-drv.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mfd/glamo/glamo-drm-drv.c b/drivers/mfd/glamo/glamo-drm-drv.c index ee648c13ac1..4f982ad2619 100644 --- a/drivers/mfd/glamo/glamo-drm-drv.c +++ b/drivers/mfd/glamo/glamo-drm-drv.c @@ -272,7 +272,8 @@ static int glamodrm_probe(struct platform_device *pdev) } /* Find the 2D engine */ - gdrm->twod_regs = platform_get_resource(pdev, IORESOURCE_MEM, 4); + gdrm->twod_regs = platform_get_resource_byname(pdev, IORESOURCE_MEM, + "glamo-2d-regs"); if ( !gdrm->twod_regs ) { dev_err(&pdev->dev, "Unable to find 2D registers.\n"); rc = -ENOENT; |