]> git.baikalelectronics.ru Git - kernel.git/commit
mfd: Guard tc3589x PM methods with CONFIG_PM_SLEEP
authorAxel Lin <axel.lin@gmail.com>
Mon, 2 Jul 2012 09:19:52 +0000 (17:19 +0800)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 8 Jul 2012 22:16:13 +0000 (00:16 +0200)
commit22cf2ea6c12b0bdff5de3e42e60a84d0f8bf235c
tree45d01bfdcc45d57c9fe6e1e274f573d58a428568
parent0f69e21f5a0deee22e5b7d1fece55ae4ef72f761
mfd: Guard tc3589x PM methods with CONFIG_PM_SLEEP

Guard PM methods with CONFIG_PM_SLEEP and get rid of some unneeded #ifdefs.
This fixes below build warnings:

  CC      drivers/mfd/tc3589x.o
drivers/mfd/tc3589x.c:361:12: warning: 'tc3589x_suspend' defined but not used [-Wunused-function]
drivers/mfd/tc3589x.c:375:12: warning: 'tc3589x_resume' defined but not used [-Wunused-function]

SIMPLE_DEV_PM_OPS already defines constant dev_pm_ops, thus also fix
'duplicate const' sparse warning.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/mfd/tc3589x.c