OSDN Git Service

backlight: Fix old-style function definition
authorMathieu Malaterre <malat@debian.org>
Tue, 26 Dec 2017 14:12:41 +0000 (15:12 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 21 Jan 2018 12:37:44 +0000 (23:37 +1100)
Fix warning:

drivers/macintosh/via-pmu-backlight.c: In function ‘pmu_backlight_init’:
drivers/macintosh/via-pmu-backlight.c:140:13: warning: old-style function definition [-Wold-style-definition]
 void __init pmu_backlight_init()
             ^~~~~~~~~~~~~~~~~~

Signed-off-by: Mathieu Malaterre <malat@debian.org>
Acked-by: Daniel Thompson <daniel.thompson@linaro.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/macintosh/via-pmu-backlight.c

index 89ed515..50ada02 100644 (file)
@@ -137,7 +137,7 @@ void pmu_backlight_set_sleep(int sleep)
 }
 #endif /* CONFIG_PM */
 
-void __init pmu_backlight_init()
+void __init pmu_backlight_init(void)
 {
        struct backlight_properties props;
        struct backlight_device *bd;