On Sunday 10 March 2013, Tim Gardner wrote: > 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] > > gcc version 4.6.3 > > Convert max8925_backlight_dt_init() to an 'inline void' since it is only > called from one place where the return code is ignored. Protect the > guts of the function with '#ifdef CONFIG_OF'. > > Cc: Richard Purdie <rpurdie@xxxxxxxxx> > Cc: Florian Tobias Schandinat <FlorianSchandinat@xxxxxx> > Cc: linux-fbdev@xxxxxxxxxxxxxxx > Signed-off-by: Tim Gardner <tim.gardner@xxxxxxxxxxxxx> > --- > drivers/video/backlight/max8925_bl.c | 9 +++------ > 1 file changed, 3 insertions(+), 6 deletions(-) I had already sent a better patch for this earlier, see "mfd: max8925: fix trivial build warning for non-dt". Unfortunately when I looked into the problem again, I found more problems with the original patches, apparently the DT bindings were never properly reviewed. It may be better to revert the original patch for 3.9 and do it better for 3.10. Arnd -- To unsubscribe from this list: send the line "unsubscribe linux-fbdev" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html