Re: [PATCH] mfd: tc3589x: Guard PM methods with CONFIG_PM_SLEEP

From: Samuel Ortiz
Date: Mon Jul 02 2012 - 10:56:54 EST


Hi Axel,

On Mon, Jul 02, 2012 at 05:19:52PM +0800, Axel Lin wrote:
> 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@xxxxxxxxx>
> ---
> drivers/mfd/tc3589x.c | 9 +++------
> 1 file changed, 3 insertions(+), 6 deletions(-)
Applied, thanks.

Cheers,
Samuel.

--
Intel Open Source Technology Centre
http://oss.intel.com/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/