-Remove the __devinit for suspend/resume function.
-Replace __devinit to __devexit for remove function.
Cherry-pick from 3.5.7 branch.
Signed-off-by: Loren HUANG <b02279@freescale.com>
Acked-by: Lily Zhang
return ret;
}
-static int __devinit gpu_remove(struct platform_device *pdev)
+static int __devexit gpu_remove(struct platform_device *pdev)
{
gcmkHEADER();
#if gcdENABLE_FSCALE_VAL_ADJUST
return 0;
}
-static int __devinit gpu_suspend(struct platform_device *dev, pm_message_t state)
+static int gpu_suspend(struct platform_device *dev, pm_message_t state)
{
gceSTATUS status;
gckGALDEVICE device;
return 0;
}
-static int __devinit gpu_resume(struct platform_device *dev)
+static int gpu_resume(struct platform_device *dev)
{
gceSTATUS status;
gckGALDEVICE device;
static struct platform_driver gpu_driver = {
.probe = gpu_probe,
- .remove = gpu_remove,
+ .remove = __devexit_p(gpu_remove),
.suspend = gpu_suspend,
.resume = gpu_resume,