> Use the SIMPLE_DEV_PM_OPS() macro to declare the driver's pm_ops. > > Signed-off-by: Alexander Shiyan <shc_work@xxxxxxx> > --- > drivers/video/backlight/pwm_bl.c | 17 ++++------------- > 1 file changed, 4 insertions(+), 13 deletions(-) > > diff --git a/drivers/video/backlight/pwm_bl.c b/drivers/video/backlight/pwm_bl.c > index b75201f..d5e1f5b 100644 > --- a/drivers/video/backlight/pwm_bl.c > +++ b/drivers/video/backlight/pwm_bl.c [...] > -static int pwm_backlight_resume(struct device *dev) > +static int __maybe_unused pwm_bl_resume(struct device *dev) What's the __maybe_unused attribute for? In include/linux/compiler-gcc.h it redefines the attribute as 'unused': #define __maybe_unused __attribute__((unused)) ... are you sure this is what you want? -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog -- 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