diff options
author | Andrzej Zaborowski <balrog@zabor.org> | 2008-11-19 17:10:53 +0000 |
---|---|---|
committer | Andy Green <agreen@pads.home.warmcat.com> | 2008-11-19 17:10:53 +0000 |
commit | 27ef48d603cb23afd637071dbf9683155c83e58a (patch) | |
tree | 69541f00e54f9c668413b011a31bd2872b299aee /arch/arm/mach-s3c2440 | |
parent | abf08dec77817f58705505004b7a62f444ddba7f (diff) |
fix-build-with-no-CONFIG_MMC
I hit this when updating to 2.6.26. Also if CONFIG_MMC is enabled this
patch converts this horrible horrible hack into a horrible hack by using
dev->resume() (untested).
Signed-off-by: Andrzej Zaborowski <balrog@zabor.org>
Diffstat (limited to 'arch/arm/mach-s3c2440')
-rw-r--r-- | arch/arm/mach-s3c2440/mach-gta02.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/mach-s3c2440/mach-gta02.c b/arch/arm/mach-s3c2440/mach-gta02.c index 33c1cc3f7c0..4a0686473ff 100644 --- a/arch/arm/mach-s3c2440/mach-gta02.c +++ b/arch/arm/mach-s3c2440/mach-gta02.c @@ -1418,12 +1418,12 @@ static int gta02_glamo_mci_all_dependencies_resumed(struct platform_device *dev) static void gta02_glamo_mci_suspending(struct platform_device *dev) { - void glamo_mci_resume(void *dev); /* little white lies about types */ - - resume_dep_glamo_mci_pcf.callback = glamo_mci_resume; +#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.context = (void *)dev; pcf50633_register_resume_dependency(pcf50633_global, &resume_dep_glamo_mci_pcf); +#endif } |