aboutsummaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorAndy Green <andy@openmoko.com>2008-11-19 17:10:58 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:10:58 +0000
commit0e7b63e010904140cc39fe98a5d8abd3de7e4f0f (patch)
tree6ec84d2454fb03d49991b3d8f3b83579deeab05a /arch
parenta78ba7c56f9d932b388e567d76a053137043ede0 (diff)
revert-fix-build-with-no-config_mmc-glamo-resume-callback-part.patch
Thomas White noticed that the recent patch from Andrzej cleaning up a nasty cast in the resume_dependency stuff for Glamo broke resume. The problem was that the wrong resume callback was arrived at by the new code, the one in the device's device_driver struct rather than the struct platform_driver that actually holds the right pointer. Since this code will be gone in 2.6.26, I reverted this part of Andrzej's patch, tidying the cast a bit anyway. Reported-by: Thomas White <taw27@cam.ac.uk> Signed-off-by: Andy Green <andy@openmoko.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-s3c2440/mach-gta02.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c
index 9df7335711e..8ade86d8e9a 100644
--- a/arch/arm/mach-s3c2440/mach-gta02.c
+++ b/arch/arm/mach-s3c2440/mach-gta02.c
@@ -1425,8 +1425,10 @@ static int gta02_glamo_mci_all_dependencies_resumed(struct platform_device *dev)
static void gta02_glamo_mci_suspending(struct platform_device *dev)
{
+ int glamo_mci_resume(struct platform_device *dev);
+
#if defined(CONFIG_MFD_GLAMO_MCI) && defined(CONFIG_PM)
- resume_dep_glamo_mci_pcf.callback = (void *)dev->dev.driver->resume;
+ resume_dep_glamo_mci_pcf.callback = (void (*)(void *))glamo_mci_resume;
resume_dep_glamo_mci_pcf.context = (void *)dev;
pcf50633_register_resume_dependency(pcf50633_global,
&resume_dep_glamo_mci_pcf);