[media] smiapp: Make suspend and resume functions __maybe_unused
authorSakari Ailus <sakari.ailus@linux.intel.com>
Sat, 19 Nov 2016 21:50:10 +0000 (19:50 -0200)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Wed, 21 Dec 2016 08:53:35 +0000 (06:53 -0200)
commit4bfb934b0067b7f6a24470682c5f7254fd4d8282
treec686c1424cc13c507bbf2a9b0d9aba112e5eda64
parent9447082ae666fbf3adbe9c9152117daa31a8b737
[media] smiapp: Make suspend and resume functions __maybe_unused

The smiapp_suspend() and smiapp_resume() functions will end up being unused
if CONFIG_PM is enabled but CONFIG_PM_SLEEP is disabled, causing a
compiler warning from both of the function definitions. Fix this by
marking the functions with __maybe_unused.

Suggested-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/i2c/smiapp/smiapp-core.c