diff options
author | Simon Glass <sjg@chromium.org> | 2023-09-14 18:21:46 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-09-24 09:54:57 -0400 |
commit | 1e94b46f73cedcebbff73799203f3266c5b28d90 (patch) | |
tree | 90c7fccabd09c2c6eb1e4efa2f8b229b11d4461b /drivers/i2c | |
parent | b05a184379631d13c4a49e423aa1324dc1ae6158 (diff) | |
download | u-boot-1e94b46f73cedcebbff73799203f3266c5b28d90.tar.gz u-boot-1e94b46f73cedcebbff73799203f3266c5b28d90.tar.bz2 u-boot-1e94b46f73cedcebbff73799203f3266c5b28d90.zip |
common: Drop linux/printk.h from common header
This old patch was marked as deferred. Bring it back to life, to continue
towards the removal of common.h
Move this out of the common header and include it only where needed.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/i2c')
-rw-r--r-- | drivers/i2c/i2c-gpio.c | 1 | ||||
-rw-r--r-- | drivers/i2c/iproc_i2c.c | 1 | ||||
-rw-r--r-- | drivers/i2c/omap24xx_i2c.c | 1 | ||||
-rw-r--r-- | drivers/i2c/stm32f7_i2c.c | 1 | ||||
-rw-r--r-- | drivers/i2c/tegra_i2c.c | 1 |
5 files changed, 5 insertions, 0 deletions
diff --git a/drivers/i2c/i2c-gpio.c b/drivers/i2c/i2c-gpio.c index c1fc290bd2..5fc3cfe42e 100644 --- a/drivers/i2c/i2c-gpio.c +++ b/drivers/i2c/i2c-gpio.c @@ -12,6 +12,7 @@ #include <log.h> #include <asm/gpio.h> #include <linux/delay.h> +#include <linux/printk.h> #define DEFAULT_UDELAY 5 #define RETRIES 0 diff --git a/drivers/i2c/iproc_i2c.c b/drivers/i2c/iproc_i2c.c index d975e78264..39af49c4ec 100644 --- a/drivers/i2c/iproc_i2c.c +++ b/drivers/i2c/iproc_i2c.c @@ -9,6 +9,7 @@ #include <common.h> #include <config.h> #include <dm.h> +#include <linux/printk.h> #include "errno.h" #include <i2c.h> #include "iproc_i2c.h" diff --git a/drivers/i2c/omap24xx_i2c.c b/drivers/i2c/omap24xx_i2c.c index c656cf8b7a..6fc9d1eba9 100644 --- a/drivers/i2c/omap24xx_i2c.c +++ b/drivers/i2c/omap24xx_i2c.c @@ -43,6 +43,7 @@ #include <i2c.h> #include <log.h> #include <linux/delay.h> +#include <linux/printk.h> #include <asm/io.h> #include <asm/omap_i2c.h> diff --git a/drivers/i2c/stm32f7_i2c.c b/drivers/i2c/stm32f7_i2c.c index 836148e4c1..b6c71789ee 100644 --- a/drivers/i2c/stm32f7_i2c.c +++ b/drivers/i2c/stm32f7_i2c.c @@ -19,6 +19,7 @@ #include <linux/delay.h> #include <linux/err.h> #include <linux/io.h> +#include <linux/printk.h> /* STM32 I2C registers */ struct stm32_i2c_regs { diff --git a/drivers/i2c/tegra_i2c.c b/drivers/i2c/tegra_i2c.c index 5864a1ad5b..57d77d56ea 100644 --- a/drivers/i2c/tegra_i2c.c +++ b/drivers/i2c/tegra_i2c.c @@ -21,6 +21,7 @@ #include <asm/arch-tegra/tegra_i2c.h> #include <linux/delay.h> #include <linux/err.h> +#include <linux/printk.h> enum i2c_type { TYPE_114, |