lkml.org 
[lkml]   [2013]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] backlight: max8925: clean build warning
Date
drivers/video/backlight/max8925_bl.c: In function
‘max8925_backlight_probe’:
drivers/video/backlight/max8925_bl.c:177:3: warning: statement with no
effect [-Wunused-value]

Replace the macro definition by function.

Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org>
---
drivers/video/backlight/max8925_bl.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/drivers/video/backlight/max8925_bl.c b/drivers/video/backlight/max8925_bl.c
index 5ca11b0..d0714ad 100644
--- a/drivers/video/backlight/max8925_bl.c
+++ b/drivers/video/backlight/max8925_bl.c
@@ -121,7 +121,11 @@ static int max8925_backlight_dt_init(struct platform_device *pdev,
return 0;
}
#else
-#define max8925_backlight_dt_init(x, y) (-1)
+static int max8925_backlight_dt_init(struct platform_device *pdev,
+ struct max8925_backlight_pdata *pdata)
+{
+ return -1;
+}
#endif

static int max8925_backlight_probe(struct platform_device *pdev)
--
1.7.10.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2013-02-05 16:21    [W:0.038 / U:5.904 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site