Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1548288
| From | Augusto Mecking Caringi <augustocaringi@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] [media] smiapp: Fix build warnings when !CONFIG_PM_SLEEP |
| Date | 2016-12-29 12:50 +0100 |
| Message-ID | <sTHnA-63D-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Fix the following build warnings when CONFIG_PM is set but
CONFIG_PM_SLEEP is not:
drivers/media/i2c/smiapp/smiapp-core.c:2746:12: warning:
‘smiapp_suspend’ defined but not used [-Wunused-function]
static int smiapp_suspend(struct device *dev)
^
drivers/media/i2c/smiapp/smiapp-core.c:2771:12: warning: ‘smiapp_resume’
defined but not used [-Wunused-function]
static int smiapp_resume(struct device *dev)
^
Signed-off-by: Augusto Mecking Caringi <augustocaringi@gmail.com>
---
drivers/media/i2c/smiapp/smiapp-core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/media/i2c/smiapp/smiapp-core.c b/drivers/media/i2c/smiapp/smiapp-core.c
index 59872b3..a08465e 100644
--- a/drivers/media/i2c/smiapp/smiapp-core.c
+++ b/drivers/media/i2c/smiapp/smiapp-core.c
@@ -2741,7 +2741,7 @@ static const struct v4l2_subdev_internal_ops smiapp_internal_ops = {
* I2C Driver
*/
-#ifdef CONFIG_PM
+#ifdef CONFIG_PM_SLEEP
static int smiapp_suspend(struct device *dev)
{
--
2.7.4
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[PATCH] [media] smiapp: Fix build warnings when !CONFIG_PM_SLEEP Augusto Mecking Caringi <augustocaringi@gmail.com> - 2016-12-29 12:50 +0100 Re: [PATCH] [media] smiapp: Fix build warnings when !CONFIG_PM_SLEEP Sakari Ailus <sakari.ailus@iki.fi> - 2016-12-29 13:10 +0100
csiph-web