]> git.ipfire.org Git - people/arne_f/kernel.git/commitdiff
clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined
authorTom Rix <trix@redhat.com>
Mon, 18 Jan 2021 21:19:55 +0000 (13:19 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Mar 2021 17:22:45 +0000 (18:22 +0100)
[ Upstream commit 7da390694afbaed8e0f05717a541dfaf1077ba51 ]

When DEBUG is defined this error occurs

drivers/clocksource/mxs_timer.c:138:1: error:
  expected ‘;’ before ‘}’ token

The preceding statement needs a semicolon.
Replace pr_info() with pr_debug() and remove the unneeded ifdef.

Fixes: eb8703e2ef7c ("clockevents/drivers/mxs: Migrate to new 'set-state' interface")
Signed-off-by: Tom Rix <trix@redhat.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20210118211955.763609-1-trix@redhat.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/clocksource/mxs_timer.c

index a03434e9fe8f47146f3f0f7047482f5d878ea1b0..7b8a468cf34f26ccfbefe1b042d98146733a51a9 100644 (file)
@@ -152,10 +152,7 @@ static void mxs_irq_clear(char *state)
 
        /* Clear pending interrupt */
        timrot_irq_acknowledge();
-
-#ifdef DEBUG
-       pr_info("%s: changing mode to %s\n", __func__, state)
-#endif /* DEBUG */
+       pr_debug("%s: changing mode to %s\n", __func__, state);
 }
 
 static int mxs_shutdown(struct clock_event_device *evt)