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

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

authored by

Bartosz Golaszewski and committed by
Daniel Lezcano
98509310 523d83ef

+2 -3
+2 -3
drivers/clocksource/timer-davinci.c
··· 7 7 * (with tiny parts adopted from code by Kevin Hilman <khilman@baylibre.com>) 8 8 */ 9 9 10 + #define pr_fmt(fmt) "%s: " fmt, __func__ 11 + 10 12 #include <linux/clk.h> 11 13 #include <linux/clockchips.h> 12 14 #include <linux/interrupt.h> ··· 18 16 #include <linux/sched_clock.h> 19 17 20 18 #include <clocksource/timer-davinci.h> 21 - 22 - #undef pr_fmt 23 - #define pr_fmt(fmt) "%s: " fmt, __func__ 24 19 25 20 #define DAVINCI_TIMER_REG_TIM12 0x10 26 21 #define DAVINCI_TIMER_REG_TIM34 0x14