summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJorge Eduardo Candelaria <jorge.candelaria@ti.com>2010-04-29 12:36:33 -0500
committerJorge Eduardo Candelaria <jorge.candelaria@ti.com>2010-06-17 18:26:59 -0500
commit52f2597d988e81f895a231207ad0328381352f38 (patch)
tree068487b07e0f29c0b0691ae1406865d7e1dc5080
parent2e05b159360f8d80c7ce1e78fc9556a4f0733066 (diff)
OMAP4: McPDM: Remove build warnings on McPDM driver
Signed-off-by: Jorge Eduardo Candelaria <jorge.candelaria@ti.com>
-rw-r--r--sound/soc/omap/mcpdm.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/sound/soc/omap/mcpdm.c b/sound/soc/omap/mcpdm.c
index 3960a4b7e6fa..d2cc2c1e0167 100644
--- a/sound/soc/omap/mcpdm.c
+++ b/sound/soc/omap/mcpdm.c
@@ -47,6 +47,7 @@ static inline int omap_mcpdm_read(u16 reg)
return __raw_readl(mcpdm->io_base + reg);
}
+#ifdef MCPDM_DEBUG
static void omap_mcpdm_reg_dump(void)
{
dev_dbg(mcpdm->dev, "***********************\n");
@@ -80,6 +81,7 @@ static void omap_mcpdm_reg_dump(void)
omap_mcpdm_read(MCPDM_DN_OFFSET));
dev_dbg(mcpdm->dev, "***********************\n");
}
+#endif
/*
* Takes the McPDM module in and out of reset state.
@@ -506,13 +508,13 @@ static int __devexit omap_mcpdm_remove(struct platform_device *pdev)
static struct platform_driver omap_mcpdm_driver = {
.probe = omap_mcpdm_probe,
.remove = __devexit_p(omap_mcpdm_remove),
+ .suspend = omap_mcpdm_suspend,
+ .resume = omap_mcpdm_resume,
.driver = {
.name = "omap-mcpdm",
},
};
-static struct platform_device *omap_mcpdm_device;
-
static int __init omap_mcpdm_init(void)
{
return platform_driver_register(&omap_mcpdm_driver);