summaryrefslogtreecommitdiffstats
path: root/recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch')
-rw-r--r--recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch b/recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch
new file mode 100644
index 0000000..43407a1
--- /dev/null
+++ b/recipes-kernel/linux/linux-wandboard-3.0.35/0006-ENGR00265130-gpu-Correct-section-mismatch-in-gpu-ker.patch
@@ -0,0 +1,60 @@
1From 376d63e9b981118f83646a836ce6626e541de1a3 Mon Sep 17 00:00:00 2001
2From: Loren HUANG <b02279@freescale.com>
3Date: Fri, 31 May 2013 18:29:58 +0800
4Subject: [PATCH 6/6] ENGR00265130 gpu:Correct section mismatch in gpu kernel
5 driver
6
7-Remove the __devinit for suspend/resume function.
8-Replace __devinit to __devexit for remove function.
9
10Upstream-Status: Backport [3.5.7-1.0.0]
11
12Signed-off-by: Loren HUANG <b02279@freescale.com>
13Acked-by: Lily Zhang
14---
15 drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
17
18diff --git a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
19index 3632a6c..9d9dc57 100644
20--- a/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
21+++ b/drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c
22@@ -1111,7 +1111,7 @@ static int __devinit gpu_probe(struct platform_device *pdev)
23 return ret;
24 }
25
26-static int __devinit gpu_remove(struct platform_device *pdev)
27+static int __devexit gpu_remove(struct platform_device *pdev)
28 {
29 gcmkHEADER();
30 #if gcdENABLE_FSCALE_VAL_ADJUST
31@@ -1123,7 +1123,7 @@ static int __devinit gpu_remove(struct platform_device *pdev)
32 return 0;
33 }
34
35-static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state)
36+static int gpu_suspend(struct platform_device *dev, pm_message_t state)
37 {
38 gceSTATUS status;
39 gckGALDEVICE device;
40@@ -1173,7 +1173,7 @@ static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state
41 return 0;
42 }
43
44-static int __devinit gpu_resume(struct platform_device *dev)
45+static int gpu_resume(struct platform_device *dev)
46 {
47 gceSTATUS status;
48 gckGALDEVICE device;
49@@ -1284,7 +1284,7 @@ static const struct dev_pm_ops gpu_pm_ops = {
50
51 static struct platform_driver gpu_driver = {
52 .probe = gpu_probe,
53- .remove = gpu_remove,
54+ .remove = __devexit_p(gpu_remove),
55
56 .suspend = gpu_suspend,
57 .resume = gpu_resume,
58--
591.8.3.2
60