diff mbox

backlight: max8925: clean build warning

Message ID 1360074943-11436-1-git-send-email-haojian.zhuang@linaro.org
State Superseded
Headers show

Commit Message

Haojian Zhuang Feb. 5, 2013, 2:35 p.m. UTC
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 mbox

Patch

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)