Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

clocksource/drivers/mxs_timer: Add missing semicolon when DEBUG is defined

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

authored by

Tom Rix and committed by
Daniel Lezcano
7da39069 2a97d553

+1 -4
+1 -4
drivers/clocksource/mxs_timer.c
··· 131 131 132 132 /* Clear pending interrupt */ 133 133 timrot_irq_acknowledge(); 134 - 135 - #ifdef DEBUG 136 - pr_info("%s: changing mode to %s\n", __func__, state) 137 - #endif /* DEBUG */ 134 + pr_debug("%s: changing mode to %s\n", __func__, state); 138 135 } 139 136 140 137 static int mxs_shutdown(struct clock_event_device *evt)