OSDN Git Service

clocksource/drivers/timer-ti-dm: Change to new style declaration
authorPhilippe Mazenauer <philippe.mazenauer@outlook.de>
Tue, 21 May 2019 12:26:04 +0000 (12:26 +0000)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 24 May 2019 13:51:30 +0000 (15:51 +0200)
Variable 'dmtimer_ops' was declared const static instead of static const.

../drivers/clocksource/timer-ti-dm.c:899:1: warning: â€˜static’ is not at beginning of declaration [-Wold-style-declaration]
 const static struct omap_dm_timer_ops dmtimer_ops = {
 ^~~~~

Signed-off-by: Philippe Mazenauer <philippe.mazenauer@outlook.de>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/clocksource/timer-ti-dm.c

index e40b55a..5394d9d 100644 (file)
@@ -896,7 +896,7 @@ static int omap_dm_timer_remove(struct platform_device *pdev)
        return ret;
 }
 
-const static struct omap_dm_timer_ops dmtimer_ops = {
+static const struct omap_dm_timer_ops dmtimer_ops = {
        .request_by_node = omap_dm_timer_request_by_node,
        .request_specific = omap_dm_timer_request_specific,
        .request = omap_dm_timer_request,