diff options
author | Ahmad Fatoum <a.fatoum@pengutronix.de> | 2021-10-30 16:17:37 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2021-11-01 10:08:38 +0100 |
commit | 23bb859cfcefe5225851b00deaf7b61189b8c06d (patch) | |
tree | 882de86cfbc9eab8e7e6803e28b42f91a84432dc /drivers/clk | |
parent | 43cbf3f0b718a8c8b0cfc4bb351dde39c6ea9b05 (diff) | |
download | barebox-23bb859cfcefe5225851b00deaf7b61189b8c06d.tar.gz barebox-23bb859cfcefe5225851b00deaf7b61189b8c06d.tar.xz |
include: add dedicated header for printf/printk
Including <stdio.h> for printf is a bit problematic, because it pulls in
other headers for <console.h>, which includes quite a few more headers
as well. To make it easier to share code between barebox and host tools
make <printk.h> the new minimal header for printf and move the extra
logging stuff into <linux/printk.h>.
Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de>
Link: https://lore.barebox.org/20211030141739.2207431-3-a.fatoum@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clk')
-rw-r--r-- | drivers/clk/analogbits/wrpll-cln28hpc.c | 2 | ||||
-rw-r--r-- | drivers/clk/at91/pmc.h | 2 | ||||
-rw-r--r-- | drivers/clk/sifive/sifive-prci.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/clk/analogbits/wrpll-cln28hpc.c b/drivers/clk/analogbits/wrpll-cln28hpc.c index 640af533d6..5a3602649f 100644 --- a/drivers/clk/analogbits/wrpll-cln28hpc.c +++ b/drivers/clk/analogbits/wrpll-cln28hpc.c @@ -23,7 +23,7 @@ #include <linux/kernel.h> #include <stdio.h> -#include <printk.h> +#include <linux/printk.h> #include <linux/bug.h> #include <linux/err.h> #include <linux/log2.h> diff --git a/drivers/clk/at91/pmc.h b/drivers/clk/at91/pmc.h index 4e6ec8231e..f9b2324f6a 100644 --- a/drivers/clk/at91/pmc.h +++ b/drivers/clk/at91/pmc.h @@ -10,7 +10,7 @@ #include <io.h> #include <linux/bitops.h> -#include <printk.h> +#include <linux/printk.h> struct pmc_data { unsigned int ncore; diff --git a/drivers/clk/sifive/sifive-prci.c b/drivers/clk/sifive/sifive-prci.c index 1701a2c5a0..fa0d1dc432 100644 --- a/drivers/clk/sifive/sifive-prci.c +++ b/drivers/clk/sifive/sifive-prci.c @@ -8,7 +8,7 @@ #include <linux/list.h> #include <linux/clkdev.h> #include <linux/overflow.h> -#include <printk.h> +#include <linux/printk.h> #include <clock.h> #include <io.h> #include <of.h> |