From: Bartosz Golaszewski Date: Mon, 11 Jan 2021 14:08:14 +0000 (+0100) Subject: clocksource/drivers/davinci: Move pr_fmt() before the includes X-Git-Tag: v5.15~1753^2^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=98509310e490bf3de13c96fbbbca8ef4af9db010;p=platform%2Fkernel%2Flinux-starfive.git 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 Acked-by: David Lechner Signed-off-by: Daniel Lezcano Link: https://lore.kernel.org/r/20210111140814.3668-1-brgl@bgdev.pl --- 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 ) */ +#define pr_fmt(fmt) "%s: " fmt, __func__ + #include #include #include @@ -17,9 +19,6 @@ #include -#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