aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@bitwiz.org.uk>2010-05-06 08:37:04 -0700
committerThomas White <taw@bitwiz.org.uk>2010-05-22 19:14:35 +0200
commit92118a72fdf779a20693cb7d01d1a12fc8e12ace (patch)
tree85f42977b522f914227f5611fe156580570f224c
parent6d0e40938fa71d6a3a1f3c9892251053bda3be6d (diff)
Fix claim of 2D register resource
Signed-off-by: Thomas White <taw@bitwiz.org.uk>
-rw-r--r--drivers/mfd/glamo/glamo-drm-drv.c3
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;