On Sun, Apr 17, 2016 at 2:09 AM, Arnd Bergmann <[email protected]> wrote:
> The newly added runtime PM support for the cadence spi driver
> causes harmless warnings when PM is disabled:
>
> drivers/spi/spi-cadence.c:681:12: warning: 'cnds_runtime_suspend' defined but 
> not used
> drivers/spi/spi-cadence.c:652:12: warning: 'cnds_runtime_resume' defined but 
> not used
>
> This adds __maybe_unused annotations to the respective functions
> to shut up the warnings, while leaving the code in place for
> compile testing and avoiding ugly #ifdefs.

Thanks for the patch.
Feel free to add my ack.
Acked-by: Shubhrajyoti Datta <[email protected]>

>
> Signed-off-by: Arnd Bergmann <[email protected]>
> Fixes: d36ccd9f7ea4 ("spi: cadence: Runtime pm adaptation")
> ---

Reply via email to