clocksource/drivers/timer-ti-dm: Change to new style declaration [Linux 5.2]

clocksource/drivers/timer-ti-dm: Change to new style declaration [Linux 5.2]

This Linux kernel change "clocksource/drivers/timer-ti-dm: Change to new style declaration" is included in the Linux 5.2 release. This change is authored by Philippe Mazenauer <philippe.mazenauer [at] outlook.de> on Tue May 21 12:26:04 2019 +0000. The commit for this change in Linux stable tree is cda03a9 (patch).

clocksource/drivers/timer-ti-dm: Change to new style declaration

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 <[email protected]>
Signed-off-by: Daniel Lezcano <[email protected]>

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/clocksource/timer-ti-dm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index e40b55a..5394d9db 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -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,

Leave a Reply

Your email address will not be published. Required fields are marked *