summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorMathieu Malaterre <malat@debian.org>2017-12-26 17:12:41 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-21 15:37:44 +0300
commit00f7b29f6e9b8ab900b1de19e72c457fd6702ccb (patch)
tree29e3ef54efc4f7c02ad4cefe106ac4a13110bef1 /drivers
parent4a7b8a499724c98493023e1e3009aab005968feb (diff)
downloadlinux-00f7b29f6e9b8ab900b1de19e72c457fd6702ccb.tar.xz
backlight: Fix old-style function definition
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/macintosh/via-pmu-backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu-backlight.c b/drivers/macintosh/via-pmu-backlight.c
index 89ed51571b62..50ada02ae75d 100644
--- a/drivers/macintosh/via-pmu-backlight.c
+++ b/drivers/macintosh/via-pmu-backlight.c
@@ -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;