summaryrefslogtreecommitdiff
path: root/drivers/clocksource/timer-davinci.c
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2021-01-11 17:08:14 +0300
committerDaniel Lezcano <daniel.lezcano@linaro.org>2021-01-18 18:31:39 +0300
commit98509310e490bf3de13c96fbbbca8ef4af9db010 (patch)
tree06ff59e6c0c91e4338e00494ceb09cc9242b59ed /drivers/clocksource/timer-davinci.c
parent523d83ef0979a9d0c8340913b40b696cb4f2f050 (diff)
downloadlinux-98509310e490bf3de13c96fbbbca8ef4af9db010.tar.xz
clocksource/drivers/davinci: Move pr_fmt() before the includes
We no longer need to undef pr_fmt if we define our own before including any headers. Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com> Acked-by: David Lechner <david@lechnology.com> Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Link: https://lore.kernel.org/r/20210111140814.3668-1-brgl@bgdev.pl
Diffstat (limited to 'drivers/clocksource/timer-davinci.c')
-rw-r--r--drivers/clocksource/timer-davinci.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/clocksource/timer-davinci.c b/drivers/clocksource/timer-davinci.c
index bb4eee31ae08..9996c0542520 100644
--- a/drivers/clocksource/timer-davinci.c
+++ b/drivers/clocksource/timer-davinci.c
@@ -7,6 +7,8 @@
* (with tiny parts adopted from code by Kevin Hilman <khilman@baylibre.com>)
*/
+#define pr_fmt(fmt) "%s: " fmt, __func__
+
#include <linux/clk.h>
#include <linux/clockchips.h>
#include <linux/interrupt.h>
@@ -17,9 +19,6 @@
#include <clocksource/timer-davinci.h>
-#undef pr_fmt
-#define pr_fmt(fmt) "%s: " fmt, __func__
-
#define DAVINCI_TIMER_REG_TIM12 0x10
#define DAVINCI_TIMER_REG_TIM34 0x14
#define DAVINCI_TIMER_REG_PRD12 0x18