summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-openmoko-2.6.34/0007-Fix-claim-of-2D-register-resource.patch
blob: 1c1369bcdbadf25597818b508be22008afd83cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
From 3e47dbb5e8cc60618fcca74bcbb24d46a7a4dee5 Mon Sep 17 00:00:00 2001
From: Thomas White <taw@bitwiz.org.uk>
Date: Thu, 6 May 2010 08:37:04 -0700
Subject: [PATCH 09/17] Fix claim of 2D register resource

Signed-off-by: Thomas White <taw@bitwiz.org.uk>
---
 drivers/gpu/drm/glamo/glamo-drm-drv.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/drivers/gpu/drm/glamo/glamo-drm-drv.c b/drivers/gpu/drm/glamo/glamo-drm-drv.c
index 1867983..eb0827a 100644
--- a/drivers/gpu/drm/glamo/glamo-drm-drv.c
+++ b/drivers/gpu/drm/glamo/glamo-drm-drv.c
@@ -273,7 +273,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;
-- 
1.7.3