1 From 376d63e9b981118f83646a836ce6626e541de1a3 Mon Sep 17 00:00:00 2001
2 From: Loren HUANG <b02279@freescale.com>
3 Date: Fri, 31 May 2013 18:29:58 +0800
4 Subject: [PATCH 6/6] ENGR00265130 gpu:Correct section mismatch in gpu kernel
7 -Remove the __devinit for suspend/resume function.
8 -Replace __devinit to __devexit for remove function.
10 Upstream-Status: Backport [3.5.7-1.0.0]
12 Signed-off-by: Loren HUANG <b02279@freescale.com>
15 drivers/mxc/gpu-viv/hal/os/linux/kernel/gc_hal_kernel_driver.c | 8 ++++----
16 1 file changed, 4 insertions(+), 4 deletions(-)
18 diff --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
19 index 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)
26 -static int __devinit gpu_remove(struct platform_device *pdev)
27 +static int __devexit gpu_remove(struct platform_device *pdev)
30 #if gcdENABLE_FSCALE_VAL_ADJUST
31 @@ -1123,7 +1123,7 @@ static int __devinit gpu_remove(struct platform_device *pdev)
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)
40 @@ -1173,7 +1173,7 @@ static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state
44 -static int __devinit gpu_resume(struct platform_device *dev)
45 +static int gpu_resume(struct platform_device *dev)
49 @@ -1284,7 +1284,7 @@ static const struct dev_pm_ops gpu_pm_ops = {
51 static struct platform_driver gpu_driver = {
53 - .remove = gpu_remove,
54 + .remove = __devexit_p(gpu_remove),
56 .suspend = gpu_suspend,