[PATCH RFC] omap-serial: make serial_omap_restore_context depend on CONFIG_PM_RUNTIME

Govindraj govindraj.ti at gmail.com
Thu Jan 12 02:32:27 EST 2012


On Wed, Jan 11, 2012 at 11:26 AM, Shubhrajyoti D <shubhrajyoti at ti.com> wrote:
> The function serial_omap_restore_context is called only from
> serial_omap_runtime_resume which depends on CONFIG_PM_RUNTIME. Make
> serial_omap_restore_context also compile conditionally.
>
> if CONFIG_PM_RUNTIME is not defined below warn may be seen.
>
>  LD      net/xfrm/built-in.o
> drivers/tty/serial/omap-serial.c:1524: warning: 'serial_omap_restore_context' defined but not used
>  CC      drivers/tty/vt/selection.o
>
> Signed-off-by: Shubhrajyoti D <shubhrajyoti at ti.com>

Acked-by: Govindraj.R <govindraj.raja at ti.com>

> ---
> applies on Tony's uart branch
>

Should apply on cleanly on mainline also
Please check.

Same comments for other patch (omap-serial :Make the
suspend/resume functions depend on CONFIG_PM_SLEEP)

--
Thanks,
Govindraj.R



More information about the linux-arm-kernel mailing list