clocksource/drivers/davinci: Move pr_fmt() before the includes
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 11 Jan 2021 14:08:14 +0000 (15:08 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 18 Jan 2021 15:31:39 +0000 (16:31 +0100)
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
drivers/clocksource/timer-davinci.c

index bb4eee31ae082baf17a9d55fed38018060433250..9996c054252008a645f5d203ba939b8a15e6aeb0 100644 (file)
@@ -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