]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
treewide: Include linux/io.h instead of asm-generic/io.h
authorIgor Prusov <ivprusov@salutedevices.com>
Tue, 14 Nov 2023 11:02:56 +0000 (14:02 +0300)
committerTom Rini <trini@konsulko.com>
Tue, 28 Nov 2023 21:19:06 +0000 (16:19 -0500)
Directly including asm-generic/io.h may break build because it will
cause redefenition of generic io macros if linux/io.h gets included
later, hence replace it with direct include of linux/io.h

Signed-off-by: Igor Prusov <ivprusov@salutedevices.com>
drivers/spi/cadence_qspi.c
drivers/usb/cdns3/cdns3-ti.c
drivers/usb/dwc3/dwc3-meson-g12a.c
drivers/usb/dwc3/dwc3-meson-gxl.c

index cc3a54f2958283147f281902b3e38b29766adce1..23240c1302b4d71c8311b4f29a95e2ee06167eb5 100644 (file)
@@ -7,7 +7,6 @@
 #include <common.h>
 #include <clk.h>
 #include <log.h>
-#include <asm-generic/io.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <malloc.h>
@@ -17,6 +16,7 @@
 #include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
+#include <linux/io.h>
 #include <linux/sizes.h>
 #include <zynqmp_firmware.h>
 #include "cadence_qspi.h"
index 92a7941ed15246aaf020b89abb4687561cb87522..2e44aadea47b3eb24b3536cdc22c6235f6fb5e9f 100644 (file)
@@ -6,7 +6,6 @@
  */
 
 #include <common.h>
-#include <asm-generic/io.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
index e0356e653fccdf415c41b0a5875cf82c15f03c93..196035215a6e6023ce5f22e23800ee0f46be89c7 100644 (file)
@@ -8,13 +8,13 @@
 
 #include <common.h>
 #include <log.h>
-#include <asm-generic/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dwc3-uboot.h>
 #include <generic-phy.h>
 #include <linux/delay.h>
+#include <linux/io.h>
 #include <linux/printk.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index d56f2747b63edbd7f700918062f293f8e96dc36c..cbe8aaa005b34cbf248354744bb2eb806d990a6a 100644 (file)
@@ -8,12 +8,12 @@
 
 #define DEBUG
 #include <common.h>
-#include <asm-generic/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dwc3-uboot.h>
 #include <generic-phy.h>
+#include <linux/io.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
 #include <malloc.h>