summaryrefslogtreecommitdiff
path: root/recipes/linux/linux-openmoko-2.6.32/0001-glamo-drm-use-dev_set_drvdata-instead-of-setting-dri.patch
blob: d9afec8830aef469cdd5ceddc23131ba6218148f (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
28
29
From eadea0d7bda93fec0e2c7a3b675fc6ab21cdfe61 Mon Sep 17 00:00:00 2001
From: Martin Jansa <Martin.Jansa@gmail.com>
Date: Tue, 22 Dec 2009 16:11:27 +0100
Subject: [PATCH 1/2] glamo-drm: use dev_set_drvdata instead of setting driver_data directly

* driver_data is private since 2.6.32
  http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=b4028437876866aba4747a655ede00f892089e14

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
---
 drivers/mfd/glamo/glamo-drm-drv.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mfd/glamo/glamo-drm-drv.c b/drivers/mfd/glamo/glamo-drm-drv.c
index 81215f4..4352091 100644
--- a/drivers/mfd/glamo/glamo-drm-drv.c
+++ b/drivers/mfd/glamo/glamo-drm-drv.c
@@ -355,7 +355,7 @@ out_release_regs:
 	release_mem_region(gdrm->reg->start, resource_size(gdrm->reg));
 out_free:
 	kfree(gdrm);
-	pdev->dev.driver_data = NULL;
+	dev_set_drvdata(&pdev->dev, NULL);
 	return rc;
 }
 
-- 
1.6.6.rc4