[PATCH] backlight: max8925: clean build warning

From: Haojian Zhuang
Date: Tue Feb 05 2013 - 09:37:09 EST


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@xxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/