Skip to contentSkip to conversation

mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig

PATCH In review Tom Rini 15 participants 136 messages May 2, 2024 – May 10, 2024 Page 5 of 5

Subsystems (123)
Network drivers Arm (32-bit) x86 SCSI +119 more subsystems
lore
Share & tools
lore
author
#121 lore raw

Re: [PATCH 73/81] usb: Remove <common.h> and add needed includes

In reply to E Shattow
Quoted 1,614 lines · E Shattow
Quoted 1,587 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Marek Vasut <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Mattijs Korpershoek <[email protected]>
Cc: Eddie Cai <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Caleb Connolly <[email protected]>
Cc: Sumit Garg <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Bin Meng <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Nobuhiro Iwamatsu <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Igor Prusov <[email protected]>
Cc: Roger Quadros <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Jonas Karlman <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Venkatesh Yadav Abbarapu <[email protected]>
Cc: Peter Korsgaard <[email protected]>
Cc: Oleksandr Suvorov <[email protected]>
Cc: Alexey Romanov <[email protected]>
Cc: Sean Anderson <[email protected]>
Cc: Miquel Raynal <[email protected]>
Cc: Teik Heng Chong <[email protected]>
Cc: Tim Harvey <[email protected]>
Cc: Mathieu Othacehe <[email protected]>
Cc: Fabio Estevam <[email protected]>
Cc: Johan Jonker <[email protected]>
Cc: Xavier Drudis Ferran <[email protected]>
Cc: Fabrice Gasnier <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Sam Edwards <[email protected]>
Cc: Andre Przywara <[email protected]>

---
 drivers/usb/cdns3/cdns3-ti.c               | 1 -
 drivers/usb/cdns3/core.c                   | 1 -
 drivers/usb/common/common.c                | 1 -
 drivers/usb/common/fsl-dt-fixup.c          | 1 -
 drivers/usb/common/fsl-errata.c            | 1 -
 drivers/usb/dwc3/core.c                    | 1 -
 drivers/usb/dwc3/dwc3-generic.c            | 1 -
 drivers/usb/dwc3/dwc3-layerscape.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-g12a.c         | 1 -
 drivers/usb/dwc3/dwc3-meson-gxl.c          | 1 -
 drivers/usb/dwc3/dwc3-omap.c               | 1 -
 drivers/usb/dwc3/ep0.c                     | 1 -
 drivers/usb/dwc3/gadget.c                  | 1 -
 drivers/usb/dwc3/samsung_usb_phy.c         | 2 +-
 drivers/usb/dwc3/ti_usb_phy.c              | 1 -
 drivers/usb/emul/sandbox_flash.c           | 1 -
 drivers/usb/emul/sandbox_hub.c             | 1 -
 drivers/usb/emul/sandbox_keyb.c            | 1 -
 drivers/usb/emul/usb-emul-uclass.c         | 1 -
 drivers/usb/eth/asix.c                     | 1 -
 drivers/usb/eth/asix88179.c                | 1 -
 drivers/usb/eth/mcs7830.c                  | 1 -
 drivers/usb/eth/r8152.c                    | 1 -
 drivers/usb/eth/r8152_fw.c                 | 1 -
 drivers/usb/eth/smsc95xx.c                 | 1 -
 drivers/usb/eth/usb_ether.c                | 1 -
 drivers/usb/gadget/at91_udc.c              | 1 -
 drivers/usb/gadget/atmel_usba_udc.c        | 1 -
 drivers/usb/gadget/bcm_udc_otg_phy.c       | 1 -
 drivers/usb/gadget/ci_udc.c                | 1 -
 drivers/usb/gadget/config.c                | 1 -
 drivers/usb/gadget/dwc2_udc_otg.c          | 1 -
 drivers/usb/gadget/dwc2_udc_otg_phy.c      | 1 -
 drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c | 1 -
 drivers/usb/gadget/ep0.c                   | 1 -
 drivers/usb/gadget/epautoconf.c            | 1 -
 drivers/usb/gadget/ether.c                 | 1 -
 drivers/usb/gadget/f_acm.c                 | 1 -
 drivers/usb/gadget/f_dfu.c                 | 1 -
 drivers/usb/gadget/f_fastboot.c            | 1 -
 drivers/usb/gadget/f_mass_storage.c        | 1 -
 drivers/usb/gadget/f_rockusb.c             | 1 -
 drivers/usb/gadget/f_sdp.c                 | 1 -
 drivers/usb/gadget/f_thor.c                | 1 -
 drivers/usb/gadget/g_dnl.c                 | 1 -
 drivers/usb/gadget/max3420_udc.c           | 1 -
 drivers/usb/gadget/rndis.c                 | 1 -
 drivers/usb/gadget/udc/udc-core.c          | 1 -
 drivers/usb/gadget/udc/udc-uclass.c        | 1 -
 drivers/usb/gadget/usbstring.c             | 1 -
 drivers/usb/host/dwc2.c                    | 1 -
 drivers/usb/host/dwc3-of-simple.c          | 1 -
 drivers/usb/host/dwc3-sti-glue.c           | 1 -
 drivers/usb/host/ehci-atmel.c              | 1 -
 drivers/usb/host/ehci-exynos.c             | 1 -
 drivers/usb/host/ehci-fsl.c                | 1 -
 drivers/usb/host/ehci-generic.c            | 1 -
 drivers/usb/host/ehci-hcd.c                | 1 -
 drivers/usb/host/ehci-marvell.c            | 1 -
 drivers/usb/host/ehci-msm.c                | 1 -
 drivers/usb/host/ehci-mx5.c                | 1 -
 drivers/usb/host/ehci-mx6.c                | 1 -
 drivers/usb/host/ehci-mxs.c                | 1 -
 drivers/usb/host/ehci-npcm.c               | 1 -
 drivers/usb/host/ehci-omap.c               | 2 +-
 drivers/usb/host/ehci-pci.c                | 1 -
 drivers/usb/host/ehci-tegra.c              | 1 -
 drivers/usb/host/ehci-vf.c                 | 1 -
 drivers/usb/host/ehci-zynq.c               | 1 -
 drivers/usb/host/ohci-at91.c               | 1 -
 drivers/usb/host/ohci-da8xx.c              | 1 -
 drivers/usb/host/ohci-generic.c            | 1 -
 drivers/usb/host/ohci-hcd.c                | 2 +-
 drivers/usb/host/ohci-lpc32xx.c            | 1 -
 drivers/usb/host/ohci-npcm.c               | 1 -
 drivers/usb/host/ohci-pci.c                | 1 -
 drivers/usb/host/r8a66597-hcd.c            | 1 -
 drivers/usb/host/usb-sandbox.c             | 1 -
 drivers/usb/host/usb-uclass.c              | 1 -
 drivers/usb/host/usb_bootdev.c             | 1 -
 drivers/usb/host/xhci-brcm.c               | 1 -
 drivers/usb/host/xhci-dwc3.c               | 1 -
 drivers/usb/host/xhci-exynos5.c            | 1 -
 drivers/usb/host/xhci-fsl.c                | 1 -
 drivers/usb/host/xhci-mem.c                | 1 -
 drivers/usb/host/xhci-mtk.c                | 1 -
 drivers/usb/host/xhci-mvebu.c              | 1 -
 drivers/usb/host/xhci-omap.c               | 1 -
 drivers/usb/host/xhci-pci.c                | 1 -
 drivers/usb/host/xhci-rcar.c               | 1 -
 drivers/usb/host/xhci-ring.c               | 1 -
 drivers/usb/host/xhci.c                    | 1 -
 drivers/usb/isp1760/isp1760-hcd.c          | 1 -
 drivers/usb/isp1760/isp1760-if.c           | 1 -
 drivers/usb/isp1760/isp1760-uboot.c        | 1 -
 drivers/usb/mtu3/mtu3_plat.c               | 1 -
 drivers/usb/musb-new/am35x.c               | 1 -
 drivers/usb/musb-new/da8xx.c               | 1 -
 drivers/usb/musb-new/mt85xx.c              | 1 -
 drivers/usb/musb-new/musb_core.c           | 1 -
 drivers/usb/musb-new/musb_dsps.c           | 1 -
 drivers/usb/musb-new/musb_gadget.c         | 1 -
 drivers/usb/musb-new/musb_gadget_ep0.c     | 1 -
 drivers/usb/musb-new/musb_host.c           | 1 -
 drivers/usb/musb-new/musb_uboot.c          | 1 -
 drivers/usb/musb-new/omap2430.c            | 1 -
 drivers/usb/musb-new/pic32.c               | 1 -
 drivers/usb/musb-new/sunxi.c               | 1 -
 drivers/usb/musb-new/ti-musb.c             | 1 -
 drivers/usb/musb-new/ux500.c               | 1 -
 drivers/usb/musb/am35x.c                   | 1 -
 drivers/usb/musb/musb_core.c               | 1 -
 drivers/usb/musb/musb_hcd.c                | 1 -
 drivers/usb/musb/musb_udc.c                | 1 -
 drivers/usb/phy/rockchip_usb2_phy.c        | 1 -
 drivers/usb/ulpi/omap-ulpi-viewport.c      | 1 -
 drivers/usb/ulpi/ulpi-viewport.c           | 1 -
 drivers/usb/ulpi/ulpi.c                    | 1 -
 118 files changed, 3 insertions(+), 118 deletions(-)
drivers/usb/cdns3/cdns3-ti.c +0 -1
index 2e44aadea47b..ac072260c30a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2019 Texas Instruments Incorporated - https://www.ti.com
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/cdns3/core.c +0 -1
index 12a741c6ea7c..b4e931646b88 100644
@@ -11,7 +11,6 @@
  *         Roger Quadros <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/common/common.c +0 -1
index 7137a569d97c..13e9a61072a9 100644
@@ -6,7 +6,6 @@
  *     Texas Instruments Incorporated, <www.ti.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <linux/printk.h>
drivers/usb/common/fsl-dt-fixup.c +0 -1
index 00b8cd368b1a..6a68bd76c274 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <asm/io.h>
drivers/usb/common/fsl-errata.c +0 -1
index 9eb1d2306725..89ae73f2ba48 100644
@@ -5,7 +5,6 @@
  * Copyright 2013 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <hwconfig.h>
 #include <fsl_errata.h>
 #include<fsl_usb.h>
drivers/usb/dwc3/core.c +0 -1
index 96e850b7170f..c443d56746dd 100644
@@ -13,7 +13,6 @@
  * commit cd72f890d2 : usb: dwc3: core: enable phy suspend quirk on non-FPGA
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <malloc.h>
drivers/usb/dwc3/dwc3-generic.c +0 -1
index 7a00529a2a8e..8db678eb85d4 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-omap.c.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <dm.h>
drivers/usb/dwc3/dwc3-layerscape.c +0 -1
index c32df2396d74..ff83bf71e898 100644
@@ -7,7 +7,6 @@
  * Based on dwc3-generic.c.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-g12a.c +0 -1
index 1a3e9350c46d..21e4f637bb15 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <dm.h>
 #include <dm/device-internal.h>
drivers/usb/dwc3/dwc3-meson-gxl.c +0 -1
index 2ce915701a85..3e693c5ff310 100644
@@ -7,7 +7,6 @@
  */
 
 #define DEBUG
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
drivers/usb/dwc3/dwc3-omap.c +0 -1
index 53c4d4826b45..4b219c35eb35 100644
@@ -13,7 +13,6 @@
  * commit 7ee2566ff5 : usb: dwc3: dwc3-omap: get rid of ->prepare()/->complete()
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
drivers/usb/dwc3/ep0.c +0 -1
index 1133cf82b1ae..117d38a0340b 100644
@@ -12,7 +12,6 @@
  *
  * commit c00552ebaf : Merge 3.18-rc7 into usb-next
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/dwc3/gadget.c +0 -1
index 406d36ceafe4..4de007cb0c38 100644
@@ -13,7 +13,6 @@
  * commit 8e74475b0e : usb: dwc3: gadget: use udc-core's reset notifier
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/dwc3/samsung_usb_phy.c +1 -1
index abbd41368901..0a7713081636 100644
@@ -7,7 +7,7 @@
  * Author: Joonyoung Shim <[email protected]>
  */
 
-#include <common.h>
+#include <asm/io.h>
 #include <asm/arch/power.h>
 #include <asm/arch/xhci-exynos.h>
 #include <linux/delay.h>
drivers/usb/dwc3/ti_usb_phy.c +0 -1
index 8ae130860f79..f0ecdea958ae 100644
@@ -16,7 +16,6 @@
  * and remove" for phy-omap-usb2.c
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <ti-usb-phy-uboot.h>
 #include <dm/device_compat.h>
drivers/usb/emul/sandbox_flash.c +0 -1
index 7c5c1ab3de73..24420e3d51e1 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY   UCLASS_USB
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/usb/emul/sandbox_hub.c +0 -1
index 084cc16cc683..3b3e59f978f7 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/emul/sandbox_keyb.c +0 -1
index 5ec1e98e4ed4..db769883ba3b 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <os.h>
drivers/usb/emul/usb-emul-uclass.c +0 -1
index b31dc950e3ab..cdc18d6cbb97 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_EMUL
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/asix.c +0 -1
index 26dd312b7d06..c5a01ec922be 100644
@@ -5,7 +5,6 @@
  * Patched for AX88772B by Antmicro Ltd <www.antmicro.com>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <net.h>
drivers/usb/eth/asix88179.c +0 -1
index 2e737e606685..7bfd285b3aa4 100644
@@ -5,7 +5,6 @@
  * from the Linux AX88179_178a driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/eth/mcs7830.c +0 -1
index d94204f22d5f..199fb7a5d08e 100644
@@ -9,7 +9,6 @@
  * MOSCHIP MCS7830 based (7730/7830/7832) USB 2.0 Ethernet Devices
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152.c +0 -1
index 3c866f4f1e2d..e3f20e08c33c 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/r8152_fw.c +0 -1
index a41abed3069a..3159f3010602 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Realtek Semiconductor Corp. All rights reserved.
  *
   */
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <linux/bitops.h>
drivers/usb/eth/smsc95xx.c +0 -1
index de6586e62639..b4fcb2c2bb0d 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2007-2008 SMSC (Steve Glendinning)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/eth/usb_ether.c +0 -1
index 2e9af54fd63d..8bba3e0974e6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/at91_udc.c +0 -1
index e573a03477b9..86b2cbf3f6ae 100644
@@ -13,7 +13,6 @@
 #undef VERBOSE_DEBUG
 #undef PACKET_TRACE
 
-#include <common.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/err.h>
drivers/usb/gadget/atmel_usba_udc.c +0 -1
index 4c420747b0b6..f99553df8d49 100644
@@ -7,7 +7,6 @@
  *                        Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
drivers/usb/gadget/bcm_udc_otg_phy.c +0 -1
index c89cd57c253d..9875191091cc 100644
@@ -4,7 +4,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 #include <asm/kona-common/clk.h>
drivers/usb/gadget/ci_udc.c +0 -1
index 750d47148798..bbe03cfff1fb 100644
@@ -7,7 +7,6 @@
  * [email protected], 27-Jan-01.
  */
 
-#include <common.h>
 #include <command.h>
 #include <config.h>
 #include <cpu_func.h>
drivers/usb/gadget/config.c +0 -1
index e96782644f31..1363ef9e73df 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <asm/unaligned.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg.c +0 -1
index 27082f5152cb..6bd395a6235a 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 #undef DEBUG
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/gadget/dwc2_udc_otg_phy.c +0 -1
index 7f8e9564b9e5..c7eea7b34421 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/list.h>
drivers/usb/gadget/dwc2_udc_otg_xfer_dma.c +0 -1
index 1c34b753511d..16b2a03f9e4b 100644
@@ -17,7 +17,6 @@
  * Lukasz Majewski <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <linux/bug.h>
drivers/usb/gadget/ep0.c +0 -1
index c256cc31fbd2..9d08640ff23a 100644
@@ -36,7 +36,6 @@
  * XXX
  */
 
-#include <common.h>
 #include <serial.h>
 #include <usbdevice.h>
 
drivers/usb/gadget/epautoconf.c +0 -1
index bb0d2971d06b..0a70035ce04b 100644
@@ -8,7 +8,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/usb/ch9.h>
 #include <linux/errno.h>
 #include <linux/usb/gadget.h>
drivers/usb/gadget/ether.c +0 -1
index 36618f0bdf36..b8b29d399b13 100644
@@ -7,7 +7,6 @@
  * Copyright (C) 2008 Nokia Corporation
  */
 
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_acm.c +0 -1
index ba216128ab27..f18c6a0a7611 100644
@@ -10,7 +10,6 @@
  */
 
 #include <circbuf.h>
-#include <common.h>
 #include <console.h>
 #include <errno.h>
 #include <g_dnl.h>
drivers/usb/gadget/f_dfu.c +0 -1
index 44877df4ec6b..ca8b36e077bc 100644
@@ -16,7 +16,6 @@
 
 #include <env.h>
 #include <errno.h>
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/f_fastboot.c +0 -1
index 09e740cc9622..8df0e3f331d1 100644
@@ -11,7 +11,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <fastboot.h>
drivers/usb/gadget/f_mass_storage.c +0 -1
index ef90c7ec7fb5..89a96dbb7a74 100644
@@ -244,7 +244,6 @@
 #include <hexdump.h>
 #include <log.h>
 #include <malloc.h>
-#include <common.h>
 #include <console.h>
 #include <g_dnl.h>
 #include <dm/devres.h>
drivers/usb/gadget/f_rockusb.c +0 -1
index 98a7ffa2a752..d679cdae97c8 100644
@@ -6,7 +6,6 @@
  */
 #include <command.h>
 #include <config.h>
-#include <common.h>
 #include <env.h>
 #include <errno.h>
 #include <log.h>
drivers/usb/gadget/f_sdp.c +0 -1
index ca2760c00d0d..89496917a61f 100644
@@ -17,7 +17,6 @@
  */
 
 #include <errno.h>
-#include <common.h>
 #include <console.h>
 #include <env.h>
 #include <log.h>
drivers/usb/gadget/f_thor.c +0 -1
index 0e7529dcdbb6..543721183480 100644
@@ -15,7 +15,6 @@
  */
 
 #include <command.h>
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/gadget/g_dnl.c +0 -1
index afb7b74f3057..b5b5f5d8c118 100644
@@ -6,7 +6,6 @@
  * Lukasz Majewski  <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 
drivers/usb/gadget/max3420_udc.c +0 -1
index fa655c98dcc5..5a227c0ffd99 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/delay.h>
 #include <asm/gpio.h>
drivers/usb/gadget/rndis.c +0 -1
index e7276ccd37a3..5e6e5a054ca7 100644
@@ -18,7 +18,6 @@
  *             updates to merge with Linux 2.6, better match RNDIS spec
  */
 
-#include <common.h>
 #include <log.h>
 #include <net.h>
 #include <malloc.h>
drivers/usb/gadget/udc/udc-core.c +0 -1
index ba658d922966..6bb419ae2abc 100644
@@ -19,7 +19,6 @@
 #include <malloc.h>
 #include <asm/cache.h>
 #include <linux/dma-mapping.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/usb/ch9.h>
drivers/usb/gadget/udc/udc-uclass.c +0 -1
index 30ee1cab0668..5dc23a55bb58 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_USB_GADGET_GENERIC
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <linux/printk.h>
drivers/usb/gadget/usbstring.c +0 -1
index e2464ad923f8..4617a95bd0a7 100644
@@ -6,7 +6,6 @@
  *                      Remy Bohmer <[email protected]>
  */
 
-#include <common.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
drivers/usb/host/dwc2.c +0 -1
index 637eb2dd06f5..a9dbb85f4e6c 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2014 Marek Vasut <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/host/dwc3-of-simple.c +0 -1
index f9df59d2e5d7..d52e7d22d1a7 100644
@@ -10,7 +10,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <reset.h>
 #include <clk.h>
drivers/usb/host/dwc3-sti-glue.c +0 -1
index 4a3ab6111276..3e6834e38e38 100644
@@ -6,7 +6,6 @@
  * Author(s): Patrice Chotard, <[email protected]> for STMicroelectronics.
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-atmel.c +0 -1
index c6d50fd4551a..ee751224463a 100644
@@ -5,7 +5,6 @@
  * Written-by: Bo Shen <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ehci-exynos.c +0 -1
index c1cdd4b0889a..1e4a5a0b6f6c 100644
@@ -6,7 +6,6 @@
  *     Vivek Gautam <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/ehci-fsl.c +0 -1
index 0569dd54fff9..ee3eb065b142 100644
@@ -7,7 +7,6 @@
  * Author: Tor Krill [email protected]
  */
 
-#include <common.h>
 #include <env.h>
 #include <log.h>
 #include <pci.h>
drivers/usb/host/ehci-generic.c +0 -1
index 936e30438d9f..23c3ed25554f 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <dm/device_compat.h>
drivers/usb/host/ehci-hcd.c +0 -1
index 9839aa17492d..7d5519c65a9e 100644
@@ -6,7 +6,6 @@
  *
  * All rights reserved.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/ehci-marvell.c +0 -1
index 6093c8fb0b68..ca0ab57d49c2 100644
@@ -5,7 +5,6 @@
  * Written-by: Prafulla Wadaskar <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
drivers/usb/host/ehci-msm.c +0 -1
index 98fe7bc3bcb1..a081f71b187d 100644
@@ -7,7 +7,6 @@
  * Based on Linux driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/lists.h>
 #include <errno.h>
drivers/usb/host/ehci-mx5.c +0 -1
index c11279867c7c..fb912654097e 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <errno.h>
drivers/usb/host/ehci-mx6.c +0 -1
index a35fcca43a23..31cd8a50f4a2 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-mxs.c +0 -1
index ddf7cc2d00a7..95af5c9254cb 100644
@@ -6,7 +6,6 @@
  * on behalf of DENX Software Engineering GmbH
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <errno.h>
drivers/usb/host/ehci-npcm.c +0 -1
index 357a5614edb7..d2a9965b4b4f 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ehci-omap.c +1 -1
index 765336a3c42b..a95fcad02131 100644
@@ -10,8 +10,8 @@
  *
  */
 
-#include <common.h>
 #include <log.h>
+#include <time.h>
 #include <usb.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/host/ehci-pci.c +0 -1
index e98ab312618d..572686580cd5 100644
@@ -4,7 +4,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ehci-tegra.c +0 -1
index 2cf16256703d..343893b9f19a 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2013 Lucas Stach
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <linux/delay.h>
drivers/usb/host/ehci-vf.c +0 -1
index 648e136447d9..5afe28ea3033 100644
@@ -6,7 +6,6 @@
  * Based on ehci-mx6 driver
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/ehci-zynq.c +0 -1
index f7e458cb15a2..dfaff5c60f4e 100644
@@ -5,7 +5,6 @@
  * USB Low level initialization(Specific to zynq)
  */
 
-#include <common.h>
 #include <dm.h>
 #include <usb.h>
 #include <asm/arch/hardware.h>
drivers/usb/host/ohci-at91.c +0 -1
index 9b955c1bd678..b170f26e6c6a 100644
@@ -4,7 +4,6 @@
  * DENX Software Engineering <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/clk.h>
 
 int usb_cpu_init(void)
drivers/usb/host/ohci-da8xx.c +0 -1
index d3d73d238442..d321d147c2f9 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2012 Sughosh Ganu <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
drivers/usb/host/ohci-generic.c +0 -1
index ceed1911a95a..f1325cd49534 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2015 Alexey Brodkin <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/ohci-hcd.c +1 -1
index 3f4418198ccd..c020d13c43d2 100644
@@ -27,7 +27,7 @@
  *     to activate workaround for bug #41 or this driver will NOT work!
  */
 
-#include <common.h>
+#include <config.h>
 #include <cpu_func.h>
 #include <asm/byteorder.h>
 #include <dm.h>
drivers/usb/host/ohci-lpc32xx.c +0 -1
index a04b2961b961..ed04cae7afed 100644
@@ -7,7 +7,6 @@
  * Copyright (c) 2015 Tyco Fire Protection Products.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <init.h>
drivers/usb/host/ohci-npcm.c +0 -1
index 9e1d52988099..ffeb6bc206a8 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2021 Nuvoton Technology Corp.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <reset.h>
drivers/usb/host/ohci-pci.c +0 -1
index f061aec28966..f10f10924205 100644
@@ -5,7 +5,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <pci.h>
drivers/usb/host/r8a66597-hcd.c +0 -1
index 3ccbc16da379..f0b18bffba41 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2008  Yoshihiro Shimoda <[email protected]>
  */
 
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/usb-sandbox.c +0 -1
index 3d4f8d653b5d..e26f0b292ed5 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <usb.h>
drivers/usb/host/usb-uclass.c +0 -1
index a1cd0ad2d669..cd3a07e4c374 100644
@@ -8,7 +8,6 @@
 
 #define LOG_CATEGORY UCLASS_USB
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <errno.h>
drivers/usb/host/usb_bootdev.c +0 -1
index 7fa1c601dff5..362b46dc466e 100644
@@ -6,7 +6,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <usb.h>
drivers/usb/host/xhci-brcm.c +0 -1
index fe17924028cd..2ffad148dea6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019 Broadcom.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <usb.h>
drivers/usb/host/xhci-dwc3.c +0 -1
index 6cebe1cc30cb..e3e0ceff43e6 100644
@@ -8,7 +8,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <log.h>
drivers/usb/host/xhci-exynos5.c +0 -1
index 270be934e7fc..6a2d422c4b8e 100644
@@ -12,7 +12,6 @@
  * exynos5 specific PHY-init sequence.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-fsl.c +0 -1
index e67e09e31e4a..3484ae1d21ee 100644
@@ -7,7 +7,6 @@
  * Author: Ramneek Mehresh<[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-mem.c +0 -1
index 72b753062650..045b0fba8128 100644
@@ -13,7 +13,6 @@
  *         Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <log.h>
drivers/usb/host/xhci-mtk.c +0 -1
index 63dfb793c6bd..7e288f0575b6 100644
@@ -5,7 +5,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <dm/devres.h>
drivers/usb/host/xhci-mvebu.c +0 -1
index 46b89de85d1e..1338b1021c64 100644
@@ -5,7 +5,6 @@
  * MVEBU USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/usb/host/xhci-omap.c +0 -1
index 501129d769a2..66da94c07098 100644
@@ -8,7 +8,6 @@
  * Author: Dan Murphy <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/errno.h>
drivers/usb/host/xhci-pci.c +0 -1
index 11f1c02000af..f6972af7963d 100644
@@ -5,7 +5,6 @@
  * All rights reserved.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <init.h>
drivers/usb/host/xhci-rcar.c +0 -1
index fedcf7869295..38c5928faed5 100644
@@ -5,7 +5,6 @@
  * Renesas RCar USB HOST xHCI Controller
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/usb/host/xhci-ring.c +0 -1
index 910c5f3352b8..1360a5940fa0 100644
@@ -13,7 +13,6 @@
  *         Vikas Sajjan <[email protected]>
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <asm/byteorder.h>
drivers/usb/host/xhci.c +0 -1
index 741e186ee05b..d30725d3fcaa 100644
@@ -19,7 +19,6 @@
  * The quirk devices support hasn't been given yet.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-hcd.c +0 -1
index a6c4d97aee3f..96c483fb9afa 100644
@@ -7,7 +7,6 @@
  */
 
 #include <hexdump.h>
-#include <common.h>
 #include <asm/cache.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/usb/isp1760/isp1760-if.c +0 -1
index c96ab459f93e..54246b49d5fe 100644
@@ -6,7 +6,6 @@
  * (c) 2007 Sebastian Siewior <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/isp1760/isp1760-uboot.c +0 -1
index 203500a4cb7f..8dcb7768a2c2 100644
@@ -6,7 +6,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <dm/device_compat.h>
drivers/usb/mtu3/mtu3_plat.c +0 -1
index b1b22b9357ce..ca86b58dfcd7 100644
@@ -5,7 +5,6 @@
  * Author: Chunfeng Yun <[email protected]>
  */
 
-#include <common.h>
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 
drivers/usb/musb-new/am35x.c +0 -1
index 0a52e09e19f1..42bc816e4f1e 100644
@@ -24,7 +24,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <asm/omap_musb.h>
 #include <linux/bug.h>
 #include <linux/delay.h>
drivers/usb/musb-new/da8xx.c +0 -1
index 68fc0c36146d..7caf03cc2e14 100644
@@ -13,7 +13,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <dm/device-internal.h>
drivers/usb/musb-new/mt85xx.c +0 -1
index 1e632dca0462..14b28bbae6b1 100644
@@ -9,7 +9,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/musb_core.c +0 -1
index 00da554982fe..257e7685cfa3 100644
@@ -79,7 +79,6 @@
 #include <linux/platform_device.h>
 #include <linux/io.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_dsps.c +0 -1
index a8ff7434c9f7..b73f3531ce24 100644
@@ -31,7 +31,6 @@
 
 #include <plat/usb.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <asm/omap_musb.h>
drivers/usb/musb-new/musb_gadget.c +0 -1
index c6083963ede9..29e225aa0f11 100644
@@ -22,7 +22,6 @@
 #include <linux/dma-mapping.h>
 #include <linux/slab.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/bug.h>
drivers/usb/musb-new/musb_gadget_ep0.c +0 -1
index 55ce8de99bb1..63eee31a6b3e 100644
@@ -18,7 +18,6 @@
 #include <linux/device.h>
 #include <linux/interrupt.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/printk.h>
drivers/usb/musb-new/musb_host.c +0 -1
index e5905d90d66f..2f2fc7c1359b 100644
@@ -21,7 +21,6 @@
 #include <linux/list.h>
 #include <linux/dma-mapping.h>
 #else
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <usb.h>
drivers/usb/musb-new/musb_uboot.c +0 -1
index 7cea9a2ed65c..43ab3245e5c3 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <console.h>
 #include <dm.h>
 #include <malloc.h>
drivers/usb/musb-new/omap2430.c +0 -1
index 308eff832c9e..c8dd73050b29 100644
@@ -8,7 +8,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <serial.h>
drivers/usb/musb-new/pic32.c +0 -1
index 4ed5e6e90c6c..0b25e5893b3c 100644
@@ -9,7 +9,6 @@
  * Based on the dsps "glue layer" code.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/global_data.h>
 #include <dm/device_compat.h>
drivers/usb/musb-new/sunxi.c +0 -1
index 778b01b22ea7..b577ba418780 100644
@@ -15,7 +15,6 @@
  *
  * This file is part of the Inventra Controller Driver for Linux.
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
drivers/usb/musb-new/ti-musb.c +0 -1
index ed5e5194d8c9..76e8b88369e3 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2016
  *     Texas Instruments Incorporated, <www.ti.com>
  */
-#include <common.h>
 #include <command.h>
 #include <console.h>
 #include <dm.h>
drivers/usb/musb-new/ux500.c +0 -1
index 57c7d5630d37..6b4ef3c85782 100644
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
 #include <dm/device_compat.h>
drivers/usb/musb/am35x.c +0 -1
index f945f1f5e2c5..2c23043d40e9 100644
@@ -9,7 +9,6 @@
  * Copyright (c) 2010 Texas Instruments Incorporated
  */
 
-#include <common.h>
 #include <linux/delay.h>
 
 #include "am35x.h"
drivers/usb/musb/musb_core.c +0 -1
index 9651f074a49d..260552e4dbd4 100644
@@ -8,7 +8,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <linux/bitops.h>
 
 #include "musb_core.h"
drivers/usb/musb/musb_hcd.c +0 -1
index 4676cabae0aa..c95c6a482812 100644
@@ -7,7 +7,6 @@
  * Author: Thomas Abraham [email protected], Texas Instruments
  */
 
-#include <common.h>
 #include <log.h>
 #include <usb.h>
 #include <linux/delay.h>
drivers/usb/musb/musb_udc.c +0 -1
index 2ffcb7caaad7..696855ee3a61 100644
@@ -37,7 +37,6 @@
  * -------------------------------------------------------------------------
  */
 
-#include <common.h>
 #include <hang.h>
 #include <serial.h>
 #include <usbdevice.h>
drivers/usb/phy/rockchip_usb2_phy.c +0 -1
index c46ad86d3d65..9ec5b2d172b8 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Rockchip Electronics Co., Ltd
  */
 
-#include <common.h>
 #include <hang.h>
 #include <log.h>
 #include <asm/global_data.h>
drivers/usb/ulpi/omap-ulpi-viewport.c +0 -1
index 1b01cd4c559f..6f0c3eb154ee 100644
@@ -7,7 +7,6 @@
  * Author: Govindraj R <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <asm/io.h>
 #include <linux/delay.h>
drivers/usb/ulpi/ulpi-viewport.c +0 -1
index 55a62808384d..bac20a02f018 100644
@@ -13,7 +13,6 @@
  * Copyright (C) 2011 Google, Inc.
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <linux/delay.h>
 #include <usb/ulpi.h>
drivers/usb/ulpi/ulpi.c +0 -2
index b5d2c2c2d1c3..128adcbde134 100644
@@ -19,7 +19,6 @@
  *   Freescale Semiconductors
  */
 
-#include <common.h>
 #include <exports.h>
 #include <log.h>
 #include <linux/delay.h>
--
Quoted 2 lines

2.34.1

There is a warning for RISC-V maybe to do with having only the generic find_next_zero_bit and not an optimized one in arch/riscv/include/asm/bitops.h:

CC drivers/usb/cdns3/gadget.o
In file included from drivers/usb/cdns3/gadget.c:70:
include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’:
include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration]

  170 |         index = find_next_zero_bit(map, size, start);
      |                 ^~~~~~~~~~~~~~~~~~
      |                 find_next_bit
  CC      drivers/usb/cdns3/ep0.o
In file included from include/linux/usb/composite.h:26,
                 from drivers/usb/cdns3/ep0.c:19:

include/linux/bitmap.h: In function ‘bitmap_find_next_zero_area’:
include/linux/bitmap.h:170:17: warning: implicit declaration of function ‘find_next_zero_bit’; did you mean ‘find_next_bit’? [-Wimplicit-function-declaration]

  170 |         index = find_next_zero_bit(map, size, start);
      |                 ^~~~~~~~~~~~~~~~~~
      |                 find_next_bit
Quoted 6 lines

CC drivers/usb/cdns3/host.o

I would guess that for architectures that have optimized versions there is no implicit declaration. This was HEAD (2f1e76bc) with patch series 405474 "Add Starfive JH7110 Cadence USB driver" applied and starfive_visionfive2_defconfig. -E

I suspect you missed one of the earlier series, all platforms compile without warnings in the end.

Signature · 1 line
Tom
author
#122 lore raw

PATCH 74/81 video: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Anatolij Gustschin <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Johan Jonker <[email protected]>

---
 drivers/video/anx9804.c                         | 1 -
 drivers/video/atmel_hlcdfb.c                    | 1 -
 drivers/video/atmel_lcdfb.c                     | 1 -
 drivers/video/backlight-uclass.c                | 1 -
 drivers/video/backlight_gpio.c                  | 1 -
 drivers/video/bcm2835.c                         | 1 -
 drivers/video/bmp.c                             | 1 -
 drivers/video/bochs.c                           | 1 -
 drivers/video/bridge/anx6345.c                  | 1 -
 drivers/video/bridge/ps862x.c                   | 1 -
 drivers/video/bridge/ptn3460.c                  | 1 -
 drivers/video/bridge/ssd2825.c                  | 1 -
 drivers/video/bridge/video-bridge-uclass.c      | 1 -
 drivers/video/broadwell_igd.c                   | 2 +-
 drivers/video/console_normal.c                  | 1 -
 drivers/video/console_rotate.c                  | 1 -
 drivers/video/console_truetype.c                | 1 -
 drivers/video/coreboot.c                        | 1 -
 drivers/video/display-uclass.c                  | 1 -
 drivers/video/dsi-host-uclass.c                 | 1 -
 drivers/video/dw_hdmi.c                         | 3 ++-
 drivers/video/dw_mipi_dsi.c                     | 1 -
 drivers/video/efi.c                             | 1 -
 drivers/video/endeavoru-panel.c                 | 1 -
 drivers/video/exynos/exynos_dp.c                | 1 -
 drivers/video/exynos/exynos_dp_lowlevel.c       | 1 -
 drivers/video/exynos/exynos_fb.c                | 1 -
 drivers/video/exynos/exynos_mipi_dsi.c          | 1 -
 drivers/video/exynos/exynos_mipi_dsi_common.c   | 1 -
 drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 -
 drivers/video/himax-hx8394.c                    | 1 -
 drivers/video/hitachi_tx18d42vm_lcd.c           | 1 -
 drivers/video/hx8238d.c                         | 1 -
 drivers/video/ihs_video_out.c                   | 1 -
 drivers/video/imx/ipu_common.c                  | 2 +-
 drivers/video/imx/ipu_disp.c                    | 1 -
 drivers/video/imx/mxc_ipuv3_fb.c                | 1 -
 drivers/video/ivybridge_igd.c                   | 1 -
 drivers/video/lm3533_backlight.c                | 1 -
 drivers/video/logicore_dp_tx.c                  | 1 -
 drivers/video/mali_dp.c                         | 1 -
 drivers/video/mcde_simple.c                     | 1 -
 drivers/video/meson/meson_canvas.c              | 1 -
 drivers/video/meson/meson_dw_hdmi.c             | 1 -
 drivers/video/meson/meson_plane.c               | 1 -
 drivers/video/meson/meson_vclk.c                | 1 -
 drivers/video/meson/meson_venc.c                | 1 -
 drivers/video/meson/meson_vpu.c                 | 1 -
 drivers/video/meson/meson_vpu_init.c            | 1 -
 drivers/video/mipi_dsi.c                        | 1 -
 drivers/video/mvebu_lcd.c                       | 1 -
 drivers/video/mxsfb.c                           | 1 -
 drivers/video/nexell/s5pxx18_dp.c               | 1 -
 drivers/video/nexell/s5pxx18_dp_hdmi.c          | 1 -
 drivers/video/nexell/s5pxx18_dp_lvds.c          | 2 +-
 drivers/video/nexell/s5pxx18_dp_mipi.c          | 1 -
 drivers/video/nexell/s5pxx18_dp_rgb.c           | 2 +-
 drivers/video/nexell/soc/s5pxx18_soc_disptop.h  | 1 +
 drivers/video/nexell_display.c                  | 1 -
 drivers/video/omap3_dss.c                       | 1 -
 drivers/video/orisetech_otm8009a.c              | 1 -
 drivers/video/panel-uclass.c                    | 1 -
 drivers/video/pwm_backlight.c                   | 1 -
 drivers/video/raydium-rm68200.c                 | 1 -
 drivers/video/renesas-r61307.c                  | 1 -
 drivers/video/renesas-r69328.c                  | 1 -
 drivers/video/rockchip/dw_mipi_dsi_rockchip.c   | 1 -
 drivers/video/rockchip/rk3288_hdmi.c            | 1 -
 drivers/video/rockchip/rk3288_mipi.c            | 1 -
 drivers/video/rockchip/rk3288_vop.c             | 1 -
 drivers/video/rockchip/rk3399_hdmi.c            | 1 -
 drivers/video/rockchip/rk3399_mipi.c            | 1 -
 drivers/video/rockchip/rk3399_vop.c             | 1 -
 drivers/video/rockchip/rk_edp.c                 | 1 -
 drivers/video/rockchip/rk_hdmi.c                | 1 -
 drivers/video/rockchip/rk_lvds.c                | 1 -
 drivers/video/rockchip/rk_mipi.c                | 1 -
 drivers/video/rockchip/rk_vop.c                 | 1 -
 drivers/video/sandbox_dsi_host.c                | 1 -
 drivers/video/sandbox_osd.c                     | 1 -
 drivers/video/sandbox_sdl.c                     | 1 -
 drivers/video/seps525.c                         | 1 -
 drivers/video/simple_panel.c                    | 1 -
 drivers/video/simplefb.c                        | 1 -
 drivers/video/ssd2828.c                         | 1 -
 drivers/video/stm32/stm32_dsi.c                 | 1 -
 drivers/video/stm32/stm32_ltdc.c                | 1 -
 drivers/video/sunxi/lcdc.c                      | 1 -
 drivers/video/sunxi/sunxi_de2.c                 | 1 -
 drivers/video/sunxi/sunxi_display.c             | 2 +-
 drivers/video/sunxi/sunxi_dw_hdmi.c             | 1 -
 drivers/video/sunxi/sunxi_lcd.c                 | 1 -
 drivers/video/sunxi/tve_common.c                | 1 -
 drivers/video/tda19988.c                        | 1 -
 drivers/video/tdo-tl070wsh30.c                  | 1 -
 drivers/video/tegra124/display.c                | 2 +-
 drivers/video/tegra124/dp.c                     | 2 +-
 drivers/video/tegra124/sor.c                    | 1 -
 drivers/video/tegra20/mipi-phy.c                | 1 -
 drivers/video/tegra20/tegra-dsi.c               | 1 -
 drivers/video/tegra20/tegra-pwm-backlight.c     | 1 -
 drivers/video/ti/tilcdc-panel.c                 | 1 -
 drivers/video/ti/tilcdc.c                       | 1 -
 drivers/video/tidss/tidss_drv.c                 | 1 -
 drivers/video/vesa.c                            | 1 -
 drivers/video/vidconsole-uclass.c               | 1 -
 drivers/video/video-uclass.c                    | 1 -
 drivers/video/video_bmp.c                       | 1 -
 drivers/video/video_osd-uclass.c                | 1 -
 drivers/video/videomodes.c                      | 1 -
 drivers/video/zynqmp/zynqmp_dpsub.c             | 1 -
 111 files changed, 10 insertions(+), 110 deletions(-)
drivers/video/anx9804.c +0 -1
index 52b5988ba5f2..a149e6f5b95d 100644
@@ -9,7 +9,6 @@
  * interface for driving eDP TFT displays.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <linux/delay.h>
 #include "anx98xx-edp.h"
drivers/video/atmel_hlcdfb.c +0 -1
index 652ba1418018..89bc0eeb680a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2012 Atmel Corporation
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/video/atmel_lcdfb.c +0 -1
index 5a7a54ada70e..281c3a1d6632 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2007 Atmel Corporation
  */
 
-#include <common.h>
 #include <atmel_lcd.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/video/backlight-uclass.c +0 -1
index c14996d003c0..2a09b2da9106 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 
drivers/video/backlight_gpio.c +0 -1
index eea824ab5e16..b26fa9a8acf1 100644
@@ -4,7 +4,6 @@
  * Author: Patrick Delaunay <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 #include <log.h>
drivers/video/bcm2835.c +0 -1
index 63efa762db16..0c81e6066229 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2012 Stephen Warren
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video.h>
drivers/video/bmp.c +0 -1
index bab6fa7265af..291ed36440c8 100644
@@ -8,7 +8,6 @@
  * BMP handling routines
  */
 
-#include <common.h>
 #include <bmp_layout.h>
 #include <command.h>
 #include <dm.h>
drivers/video/bochs.c +0 -1
index 022ea38d4cfe..00e673a4db08 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY	UCLASS_VIDEO
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
drivers/video/bridge/anx6345.c +0 -1
index 93fa25f16e31..8cee4c958bd8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Vasily Khoruzhick <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/video/bridge/ps862x.c +0 -1
index d1d22a6e235c..efd03752281c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/video/bridge/ptn3460.c +0 -1
index 4760f04108f7..5851e1ef15e9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video_bridge.h>
drivers/video/bridge/ssd2825.c +0 -1
index f0ef3dafb93b..f978021c860e 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/video/bridge/video-bridge-uclass.c +0 -1
index f389bc6b1475..2084a2e03ee8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <edid.h>
drivers/video/broadwell_igd.c +1 -1
index 83b6c908a8db..a26154ab588f 100644
@@ -5,12 +5,12 @@
  * Copyright (C) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <bios_emul.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <time.h>
 #include <vesa.h>
 #include <video.h>
 #include <asm/cpu.h>
drivers/video/console_normal.c +0 -1
index 34ef5a522942..6f4194a18147 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
  */
 
-#include <common.h>
 #include <charset.h>
 #include <dm.h>
 #include <video.h>
drivers/video/console_rotate.c +0 -1
index e4303dfb364c..dc9698362741 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
  */
 
-#include <common.h>
 #include <charset.h>
 #include <dm.h>
 #include <video.h>
drivers/video/console_truetype.c +0 -1
index 28665a327575..c435162d3f94 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <abuf.h>
 #include <dm.h>
 #include <log.h>
drivers/video/coreboot.c +0 -1
index 5b718ae3e5a5..9aede2626423 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <vesa.h>
drivers/video/display-uclass.c +0 -1
index 2da3d1d14e95..61a73e1bc2a6 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_DISPLAY
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <edid.h>
drivers/video/dsi-host-uclass.c +0 -1
index 6e5256eb1265..fde275ad7e2e 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_DSI_HOST
 
-#include <common.h>
 #include <dm.h>
 #include <dsi_host.h>
 
drivers/video/dw_hdmi.c +2 -1
index c217af97878e..35559cef2298 100644
@@ -5,13 +5,14 @@
  * Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <asm/io.h>
 #include <i2c.h>
 #include <media_bus_format.h>
+#include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "dw_hdmi.h"
 
 struct tmds_n_cts {
drivers/video/dw_mipi_dsi.c +0 -1
index a7e0784596a9..c74fe678d12a 100644
@@ -9,7 +9,6 @@
  * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dsi_host.h>
 #include <dm.h>
drivers/video/efi.c +0 -1
index 28ac15ff61b9..78d123fad4be 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY LOGC_EFI
 
-#include <common.h>
 #include <dm.h>
 #include <efi_api.h>
 #include <log.h>
drivers/video/endeavoru-panel.c +0 -1
index 1bff641434e1..d4ba4d8b6da6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/exynos/exynos_dp.c +0 -1
index 59838da6c926..b0afb2338fb7 100644
@@ -5,7 +5,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <fdtdec.h>
drivers/video/exynos/exynos_dp_lowlevel.c +0 -1
index ae500a702804..f007b319b20e 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/err.h>
drivers/video/exynos/exynos_fb.c +0 -1
index 86970a6d5d20..0407a3f51b0d 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <display.h>
 #include <div64.h>
 #include <dm.h>
drivers/video/exynos/exynos_mipi_dsi.c +0 -1
index 804fcd0b2484..edeb0a87bbb7 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <fdtdec.h>
drivers/video/exynos/exynos_mipi_dsi_common.c +0 -1
index be67cebae7f2..fc2767adc38c 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/err.h>
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +0 -1
index 8111acd9a0b5..9f18b5da1026 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/dsim.h>
 #include <asm/arch/mipi_dsim.h>
 #include <asm/arch/power.h>
drivers/video/himax-hx8394.c +0 -1
index 63637b4db022..cb7f93e9c997 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022 Ondrej Jirman <[email protected]>
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/hitachi_tx18d42vm_lcd.c +0 -1
index 95984fe3d3d1..68f7b75eef99 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2015 Hans de Goede <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/delay.h>
 
drivers/video/hx8238d.c +0 -1
index 6ee97cb4ff3a..2491a32810e2 100644
@@ -12,7 +12,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <panel.h>
 #include <spi.h>
drivers/video/ihs_video_out.c +0 -1
index 73b8f4bd1c9b..bf4d4995c36c 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <log.h>
drivers/video/imx/ipu_common.c +1 -1
index b0a99c9cd5d9..d582fb8ad9d9 100644
@@ -11,7 +11,7 @@
  */
 
 /* #define DEBUG */
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/types.h>
drivers/video/imx/ipu_disp.c +0 -1
index 144322e4e26b..aaba7d135a46 100644
@@ -12,7 +12,6 @@
 
 /* #define DEBUG */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/types.h>
drivers/video/imx/mxc_ipuv3_fb.c +0 -1
index 7e60385bcfa5..039b22086a93 100644
@@ -10,7 +10,6 @@
  * (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <part.h>
 #include <asm/cache.h>
drivers/video/ivybridge_igd.c +0 -1
index c2cc976618a1..ad688640733e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <bios_emul.h>
 #include <dm.h>
 #include <errno.h>
drivers/video/lm3533_backlight.c +0 -1
index 00297a09b7fc..6b51fa0628e4 100644
@@ -6,7 +6,6 @@
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
 #include <backlight.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/video/logicore_dp_tx.c +0 -1
index 624084d38bca..643a77a0f4e1 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/mali_dp.c +0 -1
index dbb2f5386171..c89212674624 100644
@@ -5,7 +5,6 @@
  *
  */
 #define DEBUG
-#include <common.h>
 #include <malloc.h>
 #include <video.h>
 #include <dm.h>
drivers/video/mcde_simple.c +0 -1
index 0924ceee3098..2ba5d0de1529 100644
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video.h>
drivers/video/meson/meson_canvas.c +0 -1
index eccac2f8f24a..dd4c546222d5 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 
drivers/video/meson/meson_dw_hdmi.c +0 -1
index 259af1b45717..587df7beb9b0 100644
@@ -4,7 +4,6 @@
  * Author: Jorge Ramirez-Ortiz <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/meson/meson_plane.c +0 -1
index e3f784ecfe42..899ce22d067e 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
drivers/video/meson/meson_vclk.c +0 -1
index e718a0074ed6..4761ff661e4e 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <edid.h>
 #include <linux/bitops.h>
drivers/video/meson/meson_venc.c +0 -1
index e7366dd2fdea..1bc6aaf73055 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <edid.h>
 #include <fdtdec.h>
drivers/video/meson/meson_vpu.c +0 -1
index 67d4ce7b3b49..ca627728743b 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <efi_loader.h>
drivers/video/meson/meson_vpu_init.c +0 -1
index c9808e1c6317..0e34cefd1002 100644
@@ -8,7 +8,6 @@
 
 #define DEBUG
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
drivers/video/mipi_dsi.c +0 -1
index ecacea1dbebd..dc949c8ae61f 100644
@@ -32,7 +32,6 @@
  *
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/mvebu_lcd.c +0 -1
index d3d07e5f8333..3fc5640b71ec 100644
@@ -5,7 +5,6 @@
  * Initialization of LCD interface and setup of SPLASH screen image
  */
 
-#include <common.h>
 #include <dm.h>
 #include <part.h>
 #include <video.h>
drivers/video/mxsfb.c +0 -1
index 515363f6a49b..792d6314d15e 100644
@@ -4,7 +4,6 @@
  *
  * Copyright (C) 2011-2013 Marek Vasut <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <env.h>
drivers/video/nexell/s5pxx18_dp.c +0 -1
index 2248f4790575..16a489b88dc2 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_hdmi.c +0 -1
index 3f1fb8a5757b..109d9f28bb01 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 
drivers/video/nexell/s5pxx18_dp_lvds.c +1 -1
index f8ea63fdf1b3..5db8d2b73b14 100644
@@ -6,8 +6,8 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
+#include <stdio.h>
 
 #include <asm/arch/nexell.h>
 #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_mipi.c +0 -1
index 670272b26802..58493a825982 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 
 #include <asm/arch/nexell.h>
drivers/video/nexell/s5pxx18_dp_rgb.c +1 -1
index 44e8edb02a22..6abb8b5e216b 100644
@@ -6,8 +6,8 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
+#include <stdio.h>
 
 #include <asm/arch/display.h>
 
drivers/video/nexell/soc/s5pxx18_soc_disptop.h +1 -0
index c7bf5043e605..4ad353256ebc 100644
@@ -8,6 +8,7 @@
 #ifndef _S5PXX18_SOC_DISPTOP_H_
 #define _S5PXX18_SOC_DISPTOP_H_
 
+#include <linux/types.h>
 #include "s5pxx18_soc_disptype.h"
 
 #define NUMBER_OF_DISPTOP_MODULE	1
drivers/video/nexell_display.c +0 -1
index af2698ffca84..7bda33fb16e1 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <mapmem.h>
drivers/video/omap3_dss.c +0 -1
index 432b16bfbfe7..0b7ce348d5ad 100644
@@ -25,7 +25,6 @@
  * MA 02111-1307 USA
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/dss.h>
 
drivers/video/orisetech_otm8009a.c +0 -1
index 848f174b6e48..a29e909decc9 100644
@@ -7,7 +7,6 @@
  * This otm8009a panel driver is inspired from the Linux Kernel driver
  * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/panel-uclass.c +0 -1
index 1f7e20e0b506..52a3466dc8c1 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL
 
-#include <common.h>
 #include <dm.h>
 #include <panel.h>
 
drivers/video/pwm_backlight.c +0 -1
index 1c747d98d7ac..a4576c888cf0 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 #include <log.h>
drivers/video/raydium-rm68200.c +0 -1
index f1fce55a2cb2..b8662ca22bf2 100644
@@ -7,7 +7,6 @@
  * This rm68200 panel driver is inspired from the Linux Kernel driver
  * drivers/gpu/drm/panel/panel-raydium-rm68200.c.
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/renesas-r61307.c +0 -1
index 3f5859055c98..a3697bce5ee3 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/renesas-r69328.c +0 -1
index 082f5bc3d0a0..9861c3fef11a 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c +0 -1
index fb784636e877..fa512173510b 100644
@@ -24,7 +24,6 @@
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 
-#include <common.h>
 #include <log.h>
 #include <video.h>
 #include <dm/device-internal.h>
drivers/video/rockchip/rk3288_hdmi.c +0 -1
index efa87540340b..3d39f31a5ade 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3288_mipi.c +0 -1
index 9d42119c8261..850fe3107549 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3288_vop.c +0 -1
index a4683852ea0c..282831eaac44 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <regmap.h>
drivers/video/rockchip/rk3399_hdmi.c +0 -1
index 5f3f5d26886d..c7630ccf5558 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3399_mipi.c +0 -1
index b62d80866745..57e36eed6a99 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3399_vop.c +0 -1
index cb589c7537e6..17e1601e8144 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <log.h>
drivers/video/rockchip/rk_edp.c +0 -1
index 5f68a610e4ac..eb881ba4b0ef 100644
@@ -4,7 +4,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_hdmi.c +0 -1
index d31f6a4ff81b..0ac0a3a1ecd0 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_lvds.c +0 -1
index d0a015e31ee8..c969dae30b69 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/rockchip/rk_mipi.c +0 -1
index f14cbc6dbf7f..0a603083ba9a 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_vop.c +0 -1
index acc02e5d7c78..17dfe62c9dae 100644
@@ -4,7 +4,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/sandbox_dsi_host.c +0 -1
index c84a27ee3be6..7025ac986e3c 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <dsi_host.h>
drivers/video/sandbox_osd.c +0 -1
index 2a854d3958b7..bedc32b7c80e 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2018
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <malloc.h>
drivers/video/sandbox_sdl.c +0 -1
index 9081c7da62e4..69dfa9302735 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/video/seps525.c +0 -1
index 74c8721e1e11..86cd301c4b91 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2020 Xilinx Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/video/simple_panel.c +0 -1
index 76a30427a59f..b6c5b058b2e9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/simplefb.c +0 -1
index 33bb78bc3a3e..cb518b149cb5 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rob Clark
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
drivers/video/ssd2828.c +0 -1
index 948f5e74d0fe..4334bbd72353 100644
@@ -9,7 +9,6 @@
  * interface for driving a MIPI compatible TFT display.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mipi_display.h>
 #include <asm/gpio.h>
drivers/video/stm32/stm32_dsi.c +0 -1
index a18c1e027a87..438ed41e8d5f 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dsi_host.h>
drivers/video/stm32/stm32_ltdc.c +0 -1
index 4f60ba8ebeeb..0a062c8939db 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/sunxi/lcdc.c +0 -1
index 73033c3b8589..264d775c1256 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 
drivers/video/sunxi/sunxi_de2.c +0 -1
index e02d359cd259..154641b9a699 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/sunxi/sunxi_display.c +1 -1
index 8da44a1bb6d8..4a6a89ef9d26 100644
@@ -6,7 +6,7 @@
  * (C) Copyright 2014-2015 Hans de Goede <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <display.h>
 #include <dm.h>
 #include <cpu_func.h>
drivers/video/sunxi/sunxi_dw_hdmi.c +0 -1
index a5e8d39e98f8..b9c03ea03864 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <dw_hdmi.h>
drivers/video/sunxi/sunxi_lcd.c +0 -1
index 7a01cc343cac..953233fcd683 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2017 Vasily Khoruzhick <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <log.h>
 #include <video_bridge.h>
drivers/video/sunxi/tve_common.c +0 -1
index 35251371d14f..7bc2b3b29090 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 
 #include <asm/arch/tve.h>
 #include <asm/io.h>
drivers/video/tda19988.c +0 -1
index 244874390454..ebc8521c6edd 100644
@@ -5,7 +5,6 @@
  * Based on the Linux driver, (C) 2012 Texas Instruments
  */
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <i2c.h>
drivers/video/tdo-tl070wsh30.c +0 -1
index 273672db024a..d772958f46ed 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 BayLibre, SAS
  * Author: Neil Armstrong <[email protected]>
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/tegra124/display.c +1 -1
index 9261cc9384a2..abe31e27d84d 100644
@@ -5,7 +5,6 @@
  * Extracted from Chromium coreboot commit 3f59b13d
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <edid.h>
@@ -14,6 +13,7 @@
 #include <edid.h>
 #include <log.h>
 #include <part.h>
+#include <time.h>
 #include <video.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
drivers/video/tegra124/dp.c +1 -1
index b27b1633bab5..763f7ee39fcd 100644
@@ -4,12 +4,12 @@
  * Copyright 2014 Google Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
 #include <log.h>
+#include <time.h>
 #include <video_bridge.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/dc.h>
drivers/video/tegra124/sor.c +0 -1
index 258685182c7d..1ce5330c6bcf 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011-2013, NVIDIA Corporation.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/video/tegra20/mipi-phy.c +0 -1
index c3ebc4074b53..576262e405d6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2013 NVIDIA Corporation
  */
 
-#include <common.h>
 #include <linux/err.h>
 
 #include "mipi-phy.h"
drivers/video/tegra20/tegra-dsi.c +0 -1
index 13dae37806f1..35a8e6c176b3 100644
@@ -4,7 +4,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/video/tegra20/tegra-pwm-backlight.c +0 -1
index 5f93f57fe908..79d8a021a3ac 100644
@@ -6,7 +6,6 @@
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
 #include <backlight.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/video/ti/tilcdc-panel.c +0 -1
index df95086a5151..d40765230600 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <clk.h>
 #include <display.h>
drivers/video/ti/tilcdc.c +0 -1
index 2734754ecde7..493e2f18cd2d 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/video/tidss/tidss_drv.c +0 -1
index 1380c6b69375..865d4bddb7f9 100644
@@ -9,7 +9,6 @@
  * Author: Tomi Valkeinen <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <log.h>
drivers/video/vesa.c +0 -1
index 50912c5c8bca..ab756ac8ea12 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
drivers/video/vidconsole-uclass.c +0 -1
index 5d06e51ff236..80e7adf6a1a4 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
 
-#include <common.h>
 #include <abuf.h>
 #include <charset.h>
 #include <command.h>
drivers/video/video-uclass.c +0 -1
index 7b5d1dfbb3bd..ff1382f4a43b 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
 #include <bloblist.h>
 #include <console.h>
 #include <cpu_func.h>
drivers/video/video_bmp.c +0 -1
index 45f003c8251a..ad512d99a1b9 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <bmp_layout.h>
 #include <dm.h>
 #include <log.h>
drivers/video/video_osd-uclass.c +0 -1
index 0d3aae4d8272..923686345ff7 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_OSD
 
-#include <common.h>
 #include <dm.h>
 #include <video_osd.h>
 
drivers/video/videomodes.c +0 -1
index 35955a5df7dd..d86d86798415 100644
@@ -55,7 +55,6 @@
 		      "myvideo" and setting the variable "videomode=myvideo"..
 ****************************************************************************/
 
-#include <common.h>
 #include <edid.h>
 #include <env.h>
 #include <errno.h>
drivers/video/zynqmp/zynqmp_dpsub.c +0 -1
index def4dcf6261a..1405b29cb8b9 100644
@@ -6,7 +6,6 @@
  * Xilinx displayport(DP) Tx Subsytem driver
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 74/81
#123 lore raw

Re: [PATCH 74/81] video: Remove <common.h> and add needed includes

Quoted 5 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

LGTM.

Quoted 1,504 lines

---
Cc: Anatolij Gustschin <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Johan Jonker <[email protected]>

---
 drivers/video/anx9804.c                         | 1 -
 drivers/video/atmel_hlcdfb.c                    | 1 -
 drivers/video/atmel_lcdfb.c                     | 1 -
 drivers/video/backlight-uclass.c                | 1 -
 drivers/video/backlight_gpio.c                  | 1 -
 drivers/video/bcm2835.c                         | 1 -
 drivers/video/bmp.c                             | 1 -
 drivers/video/bochs.c                           | 1 -
 drivers/video/bridge/anx6345.c                  | 1 -
 drivers/video/bridge/ps862x.c                   | 1 -
 drivers/video/bridge/ptn3460.c                  | 1 -
 drivers/video/bridge/ssd2825.c                  | 1 -
 drivers/video/bridge/video-bridge-uclass.c      | 1 -
 drivers/video/broadwell_igd.c                   | 2 +-
 drivers/video/console_normal.c                  | 1 -
 drivers/video/console_rotate.c                  | 1 -
 drivers/video/console_truetype.c                | 1 -
 drivers/video/coreboot.c                        | 1 -
 drivers/video/display-uclass.c                  | 1 -
 drivers/video/dsi-host-uclass.c                 | 1 -
 drivers/video/dw_hdmi.c                         | 3 ++-
 drivers/video/dw_mipi_dsi.c                     | 1 -
 drivers/video/efi.c                             | 1 -
 drivers/video/endeavoru-panel.c                 | 1 -
 drivers/video/exynos/exynos_dp.c                | 1 -
 drivers/video/exynos/exynos_dp_lowlevel.c       | 1 -
 drivers/video/exynos/exynos_fb.c                | 1 -
 drivers/video/exynos/exynos_mipi_dsi.c          | 1 -
 drivers/video/exynos/exynos_mipi_dsi_common.c   | 1 -
 drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 -
 drivers/video/himax-hx8394.c                    | 1 -
 drivers/video/hitachi_tx18d42vm_lcd.c           | 1 -
 drivers/video/hx8238d.c                         | 1 -
 drivers/video/ihs_video_out.c                   | 1 -
 drivers/video/imx/ipu_common.c                  | 2 +-
 drivers/video/imx/ipu_disp.c                    | 1 -
 drivers/video/imx/mxc_ipuv3_fb.c                | 1 -
 drivers/video/ivybridge_igd.c                   | 1 -
 drivers/video/lm3533_backlight.c                | 1 -
 drivers/video/logicore_dp_tx.c                  | 1 -
 drivers/video/mali_dp.c                         | 1 -
 drivers/video/mcde_simple.c                     | 1 -
 drivers/video/meson/meson_canvas.c              | 1 -
 drivers/video/meson/meson_dw_hdmi.c             | 1 -
 drivers/video/meson/meson_plane.c               | 1 -
 drivers/video/meson/meson_vclk.c                | 1 -
 drivers/video/meson/meson_venc.c                | 1 -
 drivers/video/meson/meson_vpu.c                 | 1 -
 drivers/video/meson/meson_vpu_init.c            | 1 -
 drivers/video/mipi_dsi.c                        | 1 -
 drivers/video/mvebu_lcd.c                       | 1 -
 drivers/video/mxsfb.c                           | 1 -
 drivers/video/nexell/s5pxx18_dp.c               | 1 -
 drivers/video/nexell/s5pxx18_dp_hdmi.c          | 1 -
 drivers/video/nexell/s5pxx18_dp_lvds.c          | 2 +-
 drivers/video/nexell/s5pxx18_dp_mipi.c          | 1 -
 drivers/video/nexell/s5pxx18_dp_rgb.c           | 2 +-
 drivers/video/nexell/soc/s5pxx18_soc_disptop.h  | 1 +
 drivers/video/nexell_display.c                  | 1 -
 drivers/video/omap3_dss.c                       | 1 -
 drivers/video/orisetech_otm8009a.c              | 1 -
 drivers/video/panel-uclass.c                    | 1 -
 drivers/video/pwm_backlight.c                   | 1 -
 drivers/video/raydium-rm68200.c                 | 1 -
 drivers/video/renesas-r61307.c                  | 1 -
 drivers/video/renesas-r69328.c                  | 1 -
 drivers/video/rockchip/dw_mipi_dsi_rockchip.c   | 1 -
 drivers/video/rockchip/rk3288_hdmi.c            | 1 -
 drivers/video/rockchip/rk3288_mipi.c            | 1 -
 drivers/video/rockchip/rk3288_vop.c             | 1 -
 drivers/video/rockchip/rk3399_hdmi.c            | 1 -
 drivers/video/rockchip/rk3399_mipi.c            | 1 -
 drivers/video/rockchip/rk3399_vop.c             | 1 -
 drivers/video/rockchip/rk_edp.c                 | 1 -
 drivers/video/rockchip/rk_hdmi.c                | 1 -
 drivers/video/rockchip/rk_lvds.c                | 1 -
 drivers/video/rockchip/rk_mipi.c                | 1 -
 drivers/video/rockchip/rk_vop.c                 | 1 -
 drivers/video/sandbox_dsi_host.c                | 1 -
 drivers/video/sandbox_osd.c                     | 1 -
 drivers/video/sandbox_sdl.c                     | 1 -
 drivers/video/seps525.c                         | 1 -
 drivers/video/simple_panel.c                    | 1 -
 drivers/video/simplefb.c                        | 1 -
 drivers/video/ssd2828.c                         | 1 -
 drivers/video/stm32/stm32_dsi.c                 | 1 -
 drivers/video/stm32/stm32_ltdc.c                | 1 -
 drivers/video/sunxi/lcdc.c                      | 1 -
 drivers/video/sunxi/sunxi_de2.c                 | 1 -
 drivers/video/sunxi/sunxi_display.c             | 2 +-
 drivers/video/sunxi/sunxi_dw_hdmi.c             | 1 -
 drivers/video/sunxi/sunxi_lcd.c                 | 1 -
 drivers/video/sunxi/tve_common.c                | 1 -
 drivers/video/tda19988.c                        | 1 -
 drivers/video/tdo-tl070wsh30.c                  | 1 -
 drivers/video/tegra124/display.c                | 2 +-
 drivers/video/tegra124/dp.c                     | 2 +-
 drivers/video/tegra124/sor.c                    | 1 -
 drivers/video/tegra20/mipi-phy.c                | 1 -
 drivers/video/tegra20/tegra-dsi.c               | 1 -
 drivers/video/tegra20/tegra-pwm-backlight.c     | 1 -
 drivers/video/ti/tilcdc-panel.c                 | 1 -
 drivers/video/ti/tilcdc.c                       | 1 -
 drivers/video/tidss/tidss_drv.c                 | 1 -
 drivers/video/vesa.c                            | 1 -
 drivers/video/vidconsole-uclass.c               | 1 -
 drivers/video/video-uclass.c                    | 1 -
 drivers/video/video_bmp.c                       | 1 -
 drivers/video/video_osd-uclass.c                | 1 -
 drivers/video/videomodes.c                      | 1 -
 drivers/video/zynqmp/zynqmp_dpsub.c             | 1 -
 111 files changed, 10 insertions(+), 110 deletions(-)
drivers/video/anx9804.c +0 -1
index 52b5988ba5f2..a149e6f5b95d 100644
@@ -9,7 +9,6 @@
  * interface for driving eDP TFT displays.
  */
 
-#include <common.h>
 #include <i2c.h>
 #include <linux/delay.h>
 #include "anx98xx-edp.h"
drivers/video/atmel_hlcdfb.c +0 -1
index 652ba1418018..89bc0eeb680a 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2012 Atmel Corporation
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <malloc.h>
drivers/video/atmel_lcdfb.c +0 -1
index 5a7a54ada70e..281c3a1d6632 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2007 Atmel Corporation
  */
 
-#include <common.h>
 #include <atmel_lcd.h>
 #include <dm.h>
 #include <fdtdec.h>
drivers/video/backlight-uclass.c +0 -1
index c14996d003c0..2a09b2da9106 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 
drivers/video/backlight_gpio.c +0 -1
index eea824ab5e16..b26fa9a8acf1 100644
@@ -4,7 +4,6 @@
  * Author: Patrick Delaunay <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 #include <log.h>
drivers/video/bcm2835.c +0 -1
index 63efa762db16..0c81e6066229 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2012 Stephen Warren
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video.h>
drivers/video/bmp.c +0 -1
index bab6fa7265af..291ed36440c8 100644
@@ -8,7 +8,6 @@
  * BMP handling routines
  */
 
-#include <common.h>
 #include <bmp_layout.h>
 #include <command.h>
 #include <dm.h>
drivers/video/bochs.c +0 -1
index 022ea38d4cfe..00e673a4db08 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY   UCLASS_VIDEO
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
drivers/video/bridge/anx6345.c +0 -1
index 93fa25f16e31..8cee4c958bd8 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2017 Vasily Khoruzhick <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/video/bridge/ps862x.c +0 -1
index d1d22a6e235c..efd03752281c 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
drivers/video/bridge/ptn3460.c +0 -1
index 4760f04108f7..5851e1ef15e9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video_bridge.h>
drivers/video/bridge/ssd2825.c +0 -1
index f0ef3dafb93b..f978021c860e 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/video/bridge/video-bridge-uclass.c +0 -1
index f389bc6b1475..2084a2e03ee8 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <edid.h>
drivers/video/broadwell_igd.c +1 -1
index 83b6c908a8db..a26154ab588f 100644
@@ -5,12 +5,12 @@
  * Copyright (C) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <bios_emul.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <init.h>
 #include <log.h>
+#include <time.h>
 #include <vesa.h>
 #include <video.h>
 #include <asm/cpu.h>
drivers/video/console_normal.c +0 -1
index 34ef5a522942..6f4194a18147 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
  */
 
-#include <common.h>
 #include <charset.h>
 #include <dm.h>
 #include <video.h>
drivers/video/console_rotate.c +0 -1
index e4303dfb364c..dc9698362741 100644
@@ -6,7 +6,6 @@
  * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
  */
 
-#include <common.h>
 #include <charset.h>
 #include <dm.h>
 #include <video.h>
drivers/video/console_truetype.c +0 -1
index 28665a327575..c435162d3f94 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <abuf.h>
 #include <dm.h>
 #include <log.h>
drivers/video/coreboot.c +0 -1
index 5b718ae3e5a5..9aede2626423 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <init.h>
 #include <vesa.h>
drivers/video/display-uclass.c +0 -1
index 2da3d1d14e95..61a73e1bc2a6 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_DISPLAY
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <edid.h>
drivers/video/dsi-host-uclass.c +0 -1
index 6e5256eb1265..fde275ad7e2e 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_DSI_HOST
 
-#include <common.h>
 #include <dm.h>
 #include <dsi_host.h>
 
drivers/video/dw_hdmi.c +2 -1
index c217af97878e..35559cef2298 100644
@@ -5,13 +5,14 @@
  * Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <fdtdec.h>
 #include <log.h>
 #include <asm/io.h>
 #include <i2c.h>
 #include <media_bus_format.h>
+#include <time.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include "dw_hdmi.h"
 
 struct tmds_n_cts {
drivers/video/dw_mipi_dsi.c +0 -1
index a7e0784596a9..c74fe678d12a 100644
@@ -9,7 +9,6 @@
  * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dsi_host.h>
 #include <dm.h>
drivers/video/efi.c +0 -1
index 28ac15ff61b9..78d123fad4be 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY LOGC_EFI
 
-#include <common.h>
 #include <dm.h>
 #include <efi_api.h>
 #include <log.h>
drivers/video/endeavoru-panel.c +0 -1
index 1bff641434e1..d4ba4d8b6da6 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/exynos/exynos_dp.c +0 -1
index 59838da6c926..b0afb2338fb7 100644
@@ -5,7 +5,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <fdtdec.h>
drivers/video/exynos/exynos_dp_lowlevel.c +0 -1
index ae500a702804..f007b319b20e 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/err.h>
drivers/video/exynos/exynos_fb.c +0 -1
index 86970a6d5d20..0407a3f51b0d 100644
@@ -7,7 +7,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <display.h>
 #include <div64.h>
 #include <dm.h>
drivers/video/exynos/exynos_mipi_dsi.c +0 -1
index 804fcd0b2484..edeb0a87bbb7 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <malloc.h>
 #include <fdtdec.h>
drivers/video/exynos/exynos_mipi_dsi_common.c +0 -1
index be67cebae7f2..fc2767adc38c 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/err.h>
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +0 -1
index 8111acd9a0b5..9f18b5da1026 100644
@@ -6,7 +6,6 @@
  * Author: Donghwa Lee <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/dsim.h>
 #include <asm/arch/mipi_dsim.h>
 #include <asm/arch/power.h>
drivers/video/himax-hx8394.c +0 -1
index 63637b4db022..cb7f93e9c997 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (C) 2022 Ondrej Jirman <[email protected]>
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/hitachi_tx18d42vm_lcd.c +0 -1
index 95984fe3d3d1..68f7b75eef99 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2015 Hans de Goede <[email protected]>
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <linux/delay.h>
 
drivers/video/hx8238d.c +0 -1
index 6ee97cb4ff3a..2491a32810e2 100644
@@ -12,7 +12,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <panel.h>
 #include <spi.h>
drivers/video/ihs_video_out.c +0 -1
index 73b8f4bd1c9b..bf4d4995c36c 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <log.h>
drivers/video/imx/ipu_common.c +1 -1
index b0a99c9cd5d9..d582fb8ad9d9 100644
@@ -11,7 +11,7 @@
  */
 
 /* #define DEBUG */
-#include <common.h>
+#include <config.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/types.h>
drivers/video/imx/ipu_disp.c +0 -1
index 144322e4e26b..aaba7d135a46 100644
@@ -12,7 +12,6 @@
 
 /* #define DEBUG */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 #include <linux/types.h>
drivers/video/imx/mxc_ipuv3_fb.c +0 -1
index 7e60385bcfa5..039b22086a93 100644
@@ -10,7 +10,6 @@
  * (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <log.h>
 #include <part.h>
 #include <asm/cache.h>
drivers/video/ivybridge_igd.c +0 -1
index c2cc976618a1..ad688640733e 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Google, Inc
  */
 
-#include <common.h>
 #include <bios_emul.h>
 #include <dm.h>
 #include <errno.h>
drivers/video/lm3533_backlight.c +0 -1
index 00297a09b7fc..6b51fa0628e4 100644
@@ -6,7 +6,6 @@
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
 #include <backlight.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/video/logicore_dp_tx.c +0 -1
index 624084d38bca..643a77a0f4e1 100644
@@ -9,7 +9,6 @@
  * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/mali_dp.c +0 -1
index dbb2f5386171..c89212674624 100644
@@ -5,7 +5,6 @@
  *
  */
 #define DEBUG
-#include <common.h>
 #include <malloc.h>
 #include <video.h>
 #include <dm.h>
drivers/video/mcde_simple.c +0 -1
index 0924ceee3098..2ba5d0de1529 100644
@@ -1,7 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0+
 /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <video.h>
drivers/video/meson/meson_canvas.c +0 -1
index eccac2f8f24a..dd4c546222d5 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 
drivers/video/meson/meson_dw_hdmi.c +0 -1
index 259af1b45717..587df7beb9b0 100644
@@ -4,7 +4,6 @@
  * Author: Jorge Ramirez-Ortiz <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/meson/meson_plane.c +0 -1
index e3f784ecfe42..899ce22d067e 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitfield.h>
drivers/video/meson/meson_vclk.c +0 -1
index e718a0074ed6..4761ff661e4e 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <edid.h>
 #include <linux/bitops.h>
drivers/video/meson/meson_venc.c +0 -1
index e7366dd2fdea..1bc6aaf73055 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <edid.h>
 #include <fdtdec.h>
drivers/video/meson/meson_vpu.c +0 -1
index 67d4ce7b3b49..ca627728743b 100644
@@ -6,7 +6,6 @@
  * Author: Neil Armstrong <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <efi_loader.h>
drivers/video/meson/meson_vpu_init.c +0 -1
index c9808e1c6317..0e34cefd1002 100644
@@ -8,7 +8,6 @@
 
 #define DEBUG
 
-#include <common.h>
 #include <dm.h>
 #include <asm/io.h>
 #include <linux/bitops.h>
drivers/video/mipi_dsi.c +0 -1
index ecacea1dbebd..dc949c8ae61f 100644
@@ -32,7 +32,6 @@
  *
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/mvebu_lcd.c +0 -1
index d3d07e5f8333..3fc5640b71ec 100644
@@ -5,7 +5,6 @@
  * Initialization of LCD interface and setup of SPLASH screen image
  */
 
-#include <common.h>
 #include <dm.h>
 #include <part.h>
 #include <video.h>
drivers/video/mxsfb.c +0 -1
index 515363f6a49b..792d6314d15e 100644
@@ -4,7 +4,6 @@
  *
  * Copyright (C) 2011-2013 Marek Vasut <[email protected]>
  */
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <env.h>
drivers/video/nexell/s5pxx18_dp.c +0 -1
index 2248f4790575..16a489b88dc2 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_hdmi.c +0 -1
index 3f1fb8a5757b..109d9f28bb01 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 #include <log.h>
 
drivers/video/nexell/s5pxx18_dp_lvds.c +1 -1
index f8ea63fdf1b3..5db8d2b73b14 100644
@@ -6,8 +6,8 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
+#include <stdio.h>
 
 #include <asm/arch/nexell.h>
 #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_mipi.c +0 -1
index 670272b26802..58493a825982 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
 
 #include <asm/arch/nexell.h>
drivers/video/nexell/s5pxx18_dp_rgb.c +1 -1
index 44e8edb02a22..6abb8b5e216b 100644
@@ -6,8 +6,8 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <errno.h>
+#include <stdio.h>
 
 #include <asm/arch/display.h>
 
drivers/video/nexell/soc/s5pxx18_soc_disptop.h +1 -0
index c7bf5043e605..4ad353256ebc 100644
@@ -8,6 +8,7 @@
 #ifndef _S5PXX18_SOC_DISPTOP_H_
 #define _S5PXX18_SOC_DISPTOP_H_
 
+#include <linux/types.h>
 #include "s5pxx18_soc_disptype.h"
 
 #define NUMBER_OF_DISPTOP_MODULE       1
drivers/video/nexell_display.c +0 -1
index af2698ffca84..7bda33fb16e1 100644
@@ -8,7 +8,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <command.h>
 #include <dm.h>
 #include <mapmem.h>
drivers/video/omap3_dss.c +0 -1
index 432b16bfbfe7..0b7ce348d5ad 100644
@@ -25,7 +25,6 @@
  * MA 02111-1307 USA
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/dss.h>
 
drivers/video/orisetech_otm8009a.c +0 -1
index 848f174b6e48..a29e909decc9 100644
@@ -7,7 +7,6 @@
  * This otm8009a panel driver is inspired from the Linux Kernel driver
  * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/panel-uclass.c +0 -1
index 1f7e20e0b506..52a3466dc8c1 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL
 
-#include <common.h>
 #include <dm.h>
 #include <panel.h>
 
drivers/video/pwm_backlight.c +0 -1
index 1c747d98d7ac..a4576c888cf0 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
 #include <dm.h>
 #include <backlight.h>
 #include <log.h>
drivers/video/raydium-rm68200.c +0 -1
index f1fce55a2cb2..b8662ca22bf2 100644
@@ -7,7 +7,6 @@
  * This rm68200 panel driver is inspired from the Linux Kernel driver
  * drivers/gpu/drm/panel/panel-raydium-rm68200.c.
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/renesas-r61307.c +0 -1
index 3f5859055c98..a3697bce5ee3 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/renesas-r69328.c +0 -1
index 082f5bc3d0a0..9861c3fef11a 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <panel.h>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c +0 -1
index fb784636e877..fa512173510b 100644
@@ -24,7 +24,6 @@
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 
-#include <common.h>
 #include <log.h>
 #include <video.h>
 #include <dm/device-internal.h>
drivers/video/rockchip/rk3288_hdmi.c +0 -1
index efa87540340b..3d39f31a5ade 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3288_mipi.c +0 -1
index 9d42119c8261..850fe3107549 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3288_vop.c +0 -1
index a4683852ea0c..282831eaac44 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <regmap.h>
drivers/video/rockchip/rk3399_hdmi.c +0 -1
index 5f3f5d26886d..c7630ccf5558 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3399_mipi.c +0 -1
index b62d80866745..57e36eed6a99 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk3399_vop.c +0 -1
index cb589c7537e6..17e1601e8144 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <log.h>
drivers/video/rockchip/rk_edp.c +0 -1
index 5f68a610e4ac..eb881ba4b0ef 100644
@@ -4,7 +4,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_hdmi.c +0 -1
index d31f6a4ff81b..0ac0a3a1ecd0 100644
@@ -5,7 +5,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_lvds.c +0 -1
index d0a015e31ee8..c969dae30b69 100644
@@ -3,7 +3,6 @@
  * Copyright 2016 Rockchip Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/rockchip/rk_mipi.c +0 -1
index f14cbc6dbf7f..0a603083ba9a 100644
@@ -4,7 +4,6 @@
  * Author: Eric Gao <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/rockchip/rk_vop.c +0 -1
index acc02e5d7c78..17dfe62c9dae 100644
@@ -4,7 +4,6 @@
  * Copyright 2014 Rockchip Inc.
  */
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/sandbox_dsi_host.c +0 -1
index c84a27ee3be6..7025ac986e3c 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <dsi_host.h>
drivers/video/sandbox_osd.c +0 -1
index 2a854d3958b7..bedc32b7c80e 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2018
  * Mario Six, Guntermann & Drunck GmbH, [email protected]
  */
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <malloc.h>
drivers/video/sandbox_sdl.c +0 -1
index 9081c7da62e4..69dfa9302735 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2013 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <log.h>
drivers/video/seps525.c +0 -1
index 74c8721e1e11..86cd301c4b91 100644
@@ -6,7 +6,6 @@
  * Copyright (C) 2020 Xilinx Inc.
  */
 
-#include <common.h>
 #include <command.h>
 #include <cpu_func.h>
 #include <dm.h>
drivers/video/simple_panel.c +0 -1
index 76a30427a59f..b6c5b058b2e9 100644
@@ -4,7 +4,6 @@
  * Written by Simon Glass <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/simplefb.c +0 -1
index 33bb78bc3a3e..cb518b149cb5 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2017 Rob Clark
  */
 
-#include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
drivers/video/ssd2828.c +0 -1
index 948f5e74d0fe..4334bbd72353 100644
@@ -9,7 +9,6 @@
  * interface for driving a MIPI compatible TFT display.
  */
 
-#include <common.h>
 #include <malloc.h>
 #include <mipi_display.h>
 #include <asm/gpio.h>
drivers/video/stm32/stm32_dsi.c +0 -1
index a18c1e027a87..438ed41e8d5f 100644
@@ -10,7 +10,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dsi_host.h>
drivers/video/stm32/stm32_ltdc.c +0 -1
index 4f60ba8ebeeb..0a062c8939db 100644
@@ -7,7 +7,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
 #include <clk.h>
 #include <display.h>
 #include <dm.h>
drivers/video/sunxi/lcdc.c +0 -1
index 73033c3b8589..264d775c1256 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <log.h>
 #include <linux/delay.h>
 
drivers/video/sunxi/sunxi_de2.c +0 -1
index e02d359cd259..154641b9a699 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
drivers/video/sunxi/sunxi_display.c +1 -1
index 8da44a1bb6d8..4a6a89ef9d26 100644
@@ -6,7 +6,7 @@
  * (C) Copyright 2014-2015 Hans de Goede <[email protected]>
  */
 
-#include <common.h>
+#include <config.h>
 #include <display.h>
 #include <dm.h>
 #include <cpu_func.h>
drivers/video/sunxi/sunxi_dw_hdmi.c +0 -1
index a5e8d39e98f8..b9c03ea03864 100644
@@ -6,7 +6,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <dw_hdmi.h>
drivers/video/sunxi/sunxi_lcd.c +0 -1
index 7a01cc343cac..953233fcd683 100644
@@ -5,7 +5,6 @@
  * (C) Copyright 2017 Vasily Khoruzhick <[email protected]>
  */
 
-#include <common.h>
 #include <display.h>
 #include <log.h>
 #include <video_bridge.h>
drivers/video/sunxi/tve_common.c +0 -1
index 35251371d14f..7bc2b3b29090 100644
@@ -7,7 +7,6 @@
  * (C) Copyright 2017 Jernej Skrabec <[email protected]>
  */
 
-#include <common.h>
 
 #include <asm/arch/tve.h>
 #include <asm/io.h>
drivers/video/tda19988.c +0 -1
index 244874390454..ebc8521c6edd 100644
@@ -5,7 +5,6 @@
  * Based on the Linux driver, (C) 2012 Texas Instruments
  */
 
-#include <common.h>
 #include <dm.h>
 #include <display.h>
 #include <i2c.h>
drivers/video/tdo-tl070wsh30.c +0 -1
index 273672db024a..d772958f46ed 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 BayLibre, SAS
  * Author: Neil Armstrong <[email protected]>
  */
-#include <common.h>
 #include <backlight.h>
 #include <dm.h>
 #include <mipi_dsi.h>
drivers/video/tegra124/display.c +1 -1
index 9261cc9384a2..abe31e27d84d 100644
@@ -5,7 +5,6 @@
  * Extracted from Chromium coreboot commit 3f59b13d
  */
 
-#include <common.h>
 #include <bootstage.h>
 #include <dm.h>
 #include <edid.h>
@@ -14,6 +13,7 @@
 #include <edid.h>
 #include <log.h>
 #include <part.h>
+#include <time.h>
 #include <video.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
drivers/video/tegra124/dp.c +1 -1
index b27b1633bab5..763f7ee39fcd 100644
@@ -4,12 +4,12 @@
  * Copyright 2014 Google Inc.
  */
 
-#include <common.h>
 #include <display.h>
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
 #include <log.h>
+#include <time.h>
 #include <video_bridge.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/dc.h>
drivers/video/tegra124/sor.c +0 -1
index 258685182c7d..1ce5330c6bcf 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2011-2013, NVIDIA Corporation.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/video/tegra20/mipi-phy.c +0 -1
index c3ebc4074b53..576262e405d6 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2013 NVIDIA Corporation
  */
 
-#include <common.h>
 #include <linux/err.h>
 
 #include "mipi-phy.h"
drivers/video/tegra20/tegra-dsi.c +0 -1
index 13dae37806f1..35a8e6c176b3 100644
@@ -4,7 +4,6 @@
  * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <misc.h>
drivers/video/tegra20/tegra-pwm-backlight.c +0 -1
index 5f93f57fe908..79d8a021a3ac 100644
@@ -6,7 +6,6 @@
 #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
 #include <backlight.h>
-#include <common.h>
 #include <dm.h>
 #include <i2c.h>
 #include <log.h>
drivers/video/ti/tilcdc-panel.c +0 -1
index df95086a5151..d40765230600 100644
@@ -5,7 +5,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <backlight.h>
 #include <clk.h>
 #include <display.h>
drivers/video/ti/tilcdc.c +0 -1
index 2734754ecde7..493e2f18cd2d 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2020 Dario Binacchi <[email protected]>
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/video/tidss/tidss_drv.c +0 -1
index 1380c6b69375..865d4bddb7f9 100644
@@ -9,7 +9,6 @@
  * Author: Tomi Valkeinen <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <log.h>
drivers/video/vesa.c +0 -1
index 50912c5c8bca..ab756ac8ea12 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <pci.h>
drivers/video/vidconsole-uclass.c +0 -1
index 5d06e51ff236..80e7adf6a1a4 100644
@@ -9,7 +9,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
 
-#include <common.h>
 #include <abuf.h>
 #include <charset.h>
 #include <command.h>
drivers/video/video-uclass.c +0 -1
index 7b5d1dfbb3bd..ff1382f4a43b 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
 #include <bloblist.h>
 #include <console.h>
 #include <cpu_func.h>
drivers/video/video_bmp.c +0 -1
index 45f003c8251a..ad512d99a1b9 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2015 Google, Inc
  */
 
-#include <common.h>
 #include <bmp_layout.h>
 #include <dm.h>
 #include <log.h>
drivers/video/video_osd-uclass.c +0 -1
index 0d3aae4d8272..923686345ff7 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_VIDEO_OSD
 
-#include <common.h>
 #include <dm.h>
 #include <video_osd.h>
 
drivers/video/videomodes.c +0 -1
index 35955a5df7dd..d86d86798415 100644
@@ -55,7 +55,6 @@
                      "myvideo" and setting the variable "videomode=myvideo"..
 ****************************************************************************/
 
-#include <common.h>
 #include <edid.h>
 #include <env.h>
 #include <errno.h>
drivers/video/zynqmp/zynqmp_dpsub.c +0 -2
index def4dcf6261a..1405b29cb8b9 100644
@@ -6,7 +6,6 @@
  * Xilinx displayport(DP) Tx Subsytem driver
  */
 
-#include <common.h>
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
--

2.34.1

Tested-by on v1 74/81
#124 lore raw

Re: [PATCH 74/81] video: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Looks ok, tested on FriendlyElec-Board NanoPC-T2 (s5p4418_nanopi2_defconfig).

Thanks a lot!

Quoted 1,501 lines

---
Cc: Anatolij Gustschin <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Johan Jonker <[email protected]>

---
  drivers/video/anx9804.c                         | 1 -
  drivers/video/atmel_hlcdfb.c                    | 1 -
  drivers/video/atmel_lcdfb.c                     | 1 -
  drivers/video/backlight-uclass.c                | 1 -
  drivers/video/backlight_gpio.c                  | 1 -
  drivers/video/bcm2835.c                         | 1 -
  drivers/video/bmp.c                             | 1 -
  drivers/video/bochs.c                           | 1 -
  drivers/video/bridge/anx6345.c                  | 1 -
  drivers/video/bridge/ps862x.c                   | 1 -
  drivers/video/bridge/ptn3460.c                  | 1 -
  drivers/video/bridge/ssd2825.c                  | 1 -
  drivers/video/bridge/video-bridge-uclass.c      | 1 -
  drivers/video/broadwell_igd.c                   | 2 +-
  drivers/video/console_normal.c                  | 1 -
  drivers/video/console_rotate.c                  | 1 -
  drivers/video/console_truetype.c                | 1 -
  drivers/video/coreboot.c                        | 1 -
  drivers/video/display-uclass.c                  | 1 -
  drivers/video/dsi-host-uclass.c                 | 1 -
  drivers/video/dw_hdmi.c                         | 3 ++-
  drivers/video/dw_mipi_dsi.c                     | 1 -
  drivers/video/efi.c                             | 1 -
  drivers/video/endeavoru-panel.c                 | 1 -
  drivers/video/exynos/exynos_dp.c                | 1 -
  drivers/video/exynos/exynos_dp_lowlevel.c       | 1 -
  drivers/video/exynos/exynos_fb.c                | 1 -
  drivers/video/exynos/exynos_mipi_dsi.c          | 1 -
  drivers/video/exynos/exynos_mipi_dsi_common.c   | 1 -
  drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 -
  drivers/video/himax-hx8394.c                    | 1 -
  drivers/video/hitachi_tx18d42vm_lcd.c           | 1 -
  drivers/video/hx8238d.c                         | 1 -
  drivers/video/ihs_video_out.c                   | 1 -
  drivers/video/imx/ipu_common.c                  | 2 +-
  drivers/video/imx/ipu_disp.c                    | 1 -
  drivers/video/imx/mxc_ipuv3_fb.c                | 1 -
  drivers/video/ivybridge_igd.c                   | 1 -
  drivers/video/lm3533_backlight.c                | 1 -
  drivers/video/logicore_dp_tx.c                  | 1 -
  drivers/video/mali_dp.c                         | 1 -
  drivers/video/mcde_simple.c                     | 1 -
  drivers/video/meson/meson_canvas.c              | 1 -
  drivers/video/meson/meson_dw_hdmi.c             | 1 -
  drivers/video/meson/meson_plane.c               | 1 -
  drivers/video/meson/meson_vclk.c                | 1 -
  drivers/video/meson/meson_venc.c                | 1 -
  drivers/video/meson/meson_vpu.c                 | 1 -
  drivers/video/meson/meson_vpu_init.c            | 1 -
  drivers/video/mipi_dsi.c                        | 1 -
  drivers/video/mvebu_lcd.c                       | 1 -
  drivers/video/mxsfb.c                           | 1 -
  drivers/video/nexell/s5pxx18_dp.c               | 1 -
  drivers/video/nexell/s5pxx18_dp_hdmi.c          | 1 -
  drivers/video/nexell/s5pxx18_dp_lvds.c          | 2 +-
  drivers/video/nexell/s5pxx18_dp_mipi.c          | 1 -
  drivers/video/nexell/s5pxx18_dp_rgb.c           | 2 +-
  drivers/video/nexell/soc/s5pxx18_soc_disptop.h  | 1 +
  drivers/video/nexell_display.c                  | 1 -
  drivers/video/omap3_dss.c                       | 1 -
  drivers/video/orisetech_otm8009a.c              | 1 -
  drivers/video/panel-uclass.c                    | 1 -
  drivers/video/pwm_backlight.c                   | 1 -
  drivers/video/raydium-rm68200.c                 | 1 -
  drivers/video/renesas-r61307.c                  | 1 -
  drivers/video/renesas-r69328.c                  | 1 -
  drivers/video/rockchip/dw_mipi_dsi_rockchip.c   | 1 -
  drivers/video/rockchip/rk3288_hdmi.c            | 1 -
  drivers/video/rockchip/rk3288_mipi.c            | 1 -
  drivers/video/rockchip/rk3288_vop.c             | 1 -
  drivers/video/rockchip/rk3399_hdmi.c            | 1 -
  drivers/video/rockchip/rk3399_mipi.c            | 1 -
  drivers/video/rockchip/rk3399_vop.c             | 1 -
  drivers/video/rockchip/rk_edp.c                 | 1 -
  drivers/video/rockchip/rk_hdmi.c                | 1 -
  drivers/video/rockchip/rk_lvds.c                | 1 -
  drivers/video/rockchip/rk_mipi.c                | 1 -
  drivers/video/rockchip/rk_vop.c                 | 1 -
  drivers/video/sandbox_dsi_host.c                | 1 -
  drivers/video/sandbox_osd.c                     | 1 -
  drivers/video/sandbox_sdl.c                     | 1 -
  drivers/video/seps525.c                         | 1 -
  drivers/video/simple_panel.c                    | 1 -
  drivers/video/simplefb.c                        | 1 -
  drivers/video/ssd2828.c                         | 1 -
  drivers/video/stm32/stm32_dsi.c                 | 1 -
  drivers/video/stm32/stm32_ltdc.c                | 1 -
  drivers/video/sunxi/lcdc.c                      | 1 -
  drivers/video/sunxi/sunxi_de2.c                 | 1 -
  drivers/video/sunxi/sunxi_display.c             | 2 +-
  drivers/video/sunxi/sunxi_dw_hdmi.c             | 1 -
  drivers/video/sunxi/sunxi_lcd.c                 | 1 -
  drivers/video/sunxi/tve_common.c                | 1 -
  drivers/video/tda19988.c                        | 1 -
  drivers/video/tdo-tl070wsh30.c                  | 1 -
  drivers/video/tegra124/display.c                | 2 +-
  drivers/video/tegra124/dp.c                     | 2 +-
  drivers/video/tegra124/sor.c                    | 1 -
  drivers/video/tegra20/mipi-phy.c                | 1 -
  drivers/video/tegra20/tegra-dsi.c               | 1 -
  drivers/video/tegra20/tegra-pwm-backlight.c     | 1 -
  drivers/video/ti/tilcdc-panel.c                 | 1 -
  drivers/video/ti/tilcdc.c                       | 1 -
  drivers/video/tidss/tidss_drv.c                 | 1 -
  drivers/video/vesa.c                            | 1 -
  drivers/video/vidconsole-uclass.c               | 1 -
  drivers/video/video-uclass.c                    | 1 -
  drivers/video/video_bmp.c                       | 1 -
  drivers/video/video_osd-uclass.c                | 1 -
  drivers/video/videomodes.c                      | 1 -
  drivers/video/zynqmp/zynqmp_dpsub.c             | 1 -
  111 files changed, 10 insertions(+), 110 deletions(-)
drivers/video/anx9804.c +0 -1
index 52b5988ba5f2..a149e6f5b95d 100644
@@ -9,7 +9,6 @@
   * interface for driving eDP TFT displays.
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <linux/delay.h>
  #include "anx98xx-edp.h"
drivers/video/atmel_hlcdfb.c +0 -1
index 652ba1418018..89bc0eeb680a 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2012 Atmel Corporation
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <log.h>
  #include <malloc.h>
drivers/video/atmel_lcdfb.c +0 -1
index 5a7a54ada70e..281c3a1d6632 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2007 Atmel Corporation
   */
 
-#include <common.h>
  #include <atmel_lcd.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/video/backlight-uclass.c +0 -1
index c14996d003c0..2a09b2da9106 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
 
drivers/video/backlight_gpio.c +0 -1
index eea824ab5e16..b26fa9a8acf1 100644
@@ -4,7 +4,6 @@
   * Author: Patrick Delaunay <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
  #include <log.h>
drivers/video/bcm2835.c +0 -1
index 63efa762db16..0c81e6066229 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2012 Stephen Warren
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video.h>
drivers/video/bmp.c +0 -1
index bab6fa7265af..291ed36440c8 100644
@@ -8,7 +8,6 @@
   * BMP handling routines
   */
 
-#include <common.h>
  #include <bmp_layout.h>
  #include <command.h>
  #include <dm.h>
drivers/video/bochs.c +0 -1
index 022ea38d4cfe..00e673a4db08 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_VIDEO
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pci.h>
drivers/video/bridge/anx6345.c +0 -1
index 93fa25f16e31..8cee4c958bd8 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Vasily Khoruzhick <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/video/bridge/ps862x.c +0 -1
index d1d22a6e235c..efd03752281c 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/video/bridge/ptn3460.c +0 -1
index 4760f04108f7..5851e1ef15e9 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video_bridge.h>
drivers/video/bridge/ssd2825.c +0 -1
index f0ef3dafb93b..f978021c860e 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <log.h>
drivers/video/bridge/video-bridge-uclass.c +0 -1
index f389bc6b1475..2084a2e03ee8 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <edid.h>
drivers/video/broadwell_igd.c +1 -1
index 83b6c908a8db..a26154ab588f 100644
@@ -5,12 +5,12 @@
   * Copyright (C) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <bios_emul.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <init.h>
  #include <log.h>
+#include <time.h>
  #include <vesa.h>
  #include <video.h>
  #include <asm/cpu.h>
drivers/video/console_normal.c +0 -1
index 34ef5a522942..6f4194a18147 100644
@@ -6,7 +6,6 @@
   * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
   */
 
-#include <common.h>
  #include <charset.h>
  #include <dm.h>
  #include <video.h>
drivers/video/console_rotate.c +0 -1
index e4303dfb364c..dc9698362741 100644
@@ -6,7 +6,6 @@
   * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
   */
 
-#include <common.h>
  #include <charset.h>
  #include <dm.h>
  #include <video.h>
drivers/video/console_truetype.c +0 -1
index 28665a327575..c435162d3f94 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <abuf.h>
  #include <dm.h>
  #include <log.h>
drivers/video/coreboot.c +0 -1
index 5b718ae3e5a5..9aede2626423 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <init.h>
  #include <vesa.h>
drivers/video/display-uclass.c +0 -1
index 2da3d1d14e95..61a73e1bc2a6 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_DISPLAY
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <edid.h>
drivers/video/dsi-host-uclass.c +0 -1
index 6e5256eb1265..fde275ad7e2e 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_DSI_HOST
 
-#include <common.h>
  #include <dm.h>
  #include <dsi_host.h>
 
drivers/video/dw_hdmi.c +2 -1
index c217af97878e..35559cef2298 100644
@@ -5,13 +5,14 @@
   * Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <fdtdec.h>
  #include <log.h>
  #include <asm/io.h>
  #include <i2c.h>
  #include <media_bus_format.h>
+#include <time.h>
  #include <linux/delay.h>
+#include <linux/errno.h>
  #include "dw_hdmi.h"
 
  struct tmds_n_cts {
drivers/video/dw_mipi_dsi.c +0 -1
index a7e0784596a9..c74fe678d12a 100644
@@ -9,7 +9,6 @@
   * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dsi_host.h>
  #include <dm.h>
drivers/video/efi.c +0 -1
index 28ac15ff61b9..78d123fad4be 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY LOGC_EFI
 
-#include <common.h>
  #include <dm.h>
  #include <efi_api.h>
  #include <log.h>
drivers/video/endeavoru-panel.c +0 -1
index 1bff641434e1..d4ba4d8b6da6 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/exynos/exynos_dp.c +0 -1
index 59838da6c926..b0afb2338fb7 100644
@@ -5,7 +5,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <fdtdec.h>
drivers/video/exynos/exynos_dp_lowlevel.c +0 -1
index ae500a702804..f007b319b20e 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/err.h>
drivers/video/exynos/exynos_fb.c +0 -1
index 86970a6d5d20..0407a3f51b0d 100644
@@ -7,7 +7,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <display.h>
  #include <div64.h>
  #include <dm.h>
drivers/video/exynos/exynos_mipi_dsi.c +0 -1
index 804fcd0b2484..edeb0a87bbb7 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <fdtdec.h>
drivers/video/exynos/exynos_mipi_dsi_common.c +0 -1
index be67cebae7f2..fc2767adc38c 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/err.h>
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +0 -1
index 8111acd9a0b5..9f18b5da1026 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <asm/arch/dsim.h>
  #include <asm/arch/mipi_dsim.h>
  #include <asm/arch/power.h>
drivers/video/himax-hx8394.c +0 -1
index 63637b4db022..cb7f93e9c997 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (C) 2022 Ondrej Jirman <[email protected]>
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/hitachi_tx18d42vm_lcd.c +0 -1
index 95984fe3d3d1..68f7b75eef99 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Hans de Goede <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <linux/delay.h>
 
drivers/video/hx8238d.c +0 -1
index 6ee97cb4ff3a..2491a32810e2 100644
@@ -12,7 +12,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <panel.h>
  #include <spi.h>
drivers/video/ihs_video_out.c +0 -1
index 73b8f4bd1c9b..bf4d4995c36c 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <log.h>
drivers/video/imx/ipu_common.c +1 -1
index b0a99c9cd5d9..d582fb8ad9d9 100644
@@ -11,7 +11,7 @@
   */
 
  /* #define DEBUG */
-#include <common.h>
+#include <config.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/types.h>
drivers/video/imx/ipu_disp.c +0 -1
index 144322e4e26b..aaba7d135a46 100644
@@ -12,7 +12,6 @@
 
  /* #define DEBUG */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/types.h>
drivers/video/imx/mxc_ipuv3_fb.c +0 -1
index 7e60385bcfa5..039b22086a93 100644
@@ -10,7 +10,6 @@
   * (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <log.h>
  #include <part.h>
  #include <asm/cache.h>
drivers/video/ivybridge_igd.c +0 -1
index c2cc976618a1..ad688640733e 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <bios_emul.h>
  #include <dm.h>
  #include <errno.h>
drivers/video/lm3533_backlight.c +0 -1
index 00297a09b7fc..6b51fa0628e4 100644
@@ -6,7 +6,6 @@
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
  #include <backlight.h>
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/video/logicore_dp_tx.c +0 -1
index 624084d38bca..643a77a0f4e1 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/mali_dp.c +0 -1
index dbb2f5386171..c89212674624 100644
@@ -5,7 +5,6 @@
   *
   */
  #define DEBUG
-#include <common.h>
  #include <malloc.h>
  #include <video.h>
  #include <dm.h>
drivers/video/mcde_simple.c +0 -1
index 0924ceee3098..2ba5d0de1529 100644
@@ -1,7 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0+
  /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video.h>
drivers/video/meson/meson_canvas.c +0 -1
index eccac2f8f24a..dd4c546222d5 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
 
drivers/video/meson/meson_dw_hdmi.c +0 -1
index 259af1b45717..587df7beb9b0 100644
@@ -4,7 +4,6 @@
   * Author: Jorge Ramirez-Ortiz <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/meson/meson_plane.c +0 -1
index e3f784ecfe42..899ce22d067e 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <linux/bitfield.h>
drivers/video/meson/meson_vclk.c +0 -1
index e718a0074ed6..4761ff661e4e 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <edid.h>
  #include <linux/bitops.h>
drivers/video/meson/meson_venc.c +0 -1
index e7366dd2fdea..1bc6aaf73055 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <edid.h>
  #include <fdtdec.h>
drivers/video/meson/meson_vpu.c +0 -1
index 67d4ce7b3b49..ca627728743b 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <efi_loader.h>
drivers/video/meson/meson_vpu_init.c +0 -1
index c9808e1c6317..0e34cefd1002 100644
@@ -8,7 +8,6 @@
 
  #define DEBUG
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <linux/bitops.h>
drivers/video/mipi_dsi.c +0 -1
index ecacea1dbebd..dc949c8ae61f 100644
@@ -32,7 +32,6 @@
   *
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/mvebu_lcd.c +0 -1
index d3d07e5f8333..3fc5640b71ec 100644
@@ -5,7 +5,6 @@
   * Initialization of LCD interface and setup of SPLASH screen image
   */
 
-#include <common.h>
  #include <dm.h>
  #include <part.h>
  #include <video.h>
drivers/video/mxsfb.c +0 -1
index 515363f6a49b..792d6314d15e 100644
@@ -4,7 +4,6 @@
   *
   * Copyright (C) 2011-2013 Marek Vasut <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <env.h>
drivers/video/nexell/s5pxx18_dp.c +0 -1
index 2248f4790575..16a489b88dc2 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_hdmi.c +0 -1
index 3f1fb8a5757b..109d9f28bb01 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
  #include <log.h>
 
drivers/video/nexell/s5pxx18_dp_lvds.c +1 -1
index f8ea63fdf1b3..5db8d2b73b14 100644
@@ -6,8 +6,8 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
+#include <stdio.h>
 
  #include <asm/arch/nexell.h>
  #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_mipi.c +0 -1
index 670272b26802..58493a825982 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
 
  #include <asm/arch/nexell.h>
drivers/video/nexell/s5pxx18_dp_rgb.c +1 -1
index 44e8edb02a22..6abb8b5e216b 100644
@@ -6,8 +6,8 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
+#include <stdio.h>
 
  #include <asm/arch/display.h>
 
drivers/video/nexell/soc/s5pxx18_soc_disptop.h +1 -0
index c7bf5043e605..4ad353256ebc 100644
@@ -8,6 +8,7 @@
  #ifndef _S5PXX18_SOC_DISPTOP_H_
  #define _S5PXX18_SOC_DISPTOP_H_
 
+#include <linux/types.h>
  #include "s5pxx18_soc_disptype.h"
 
  #define NUMBER_OF_DISPTOP_MODULE	1
drivers/video/nexell_display.c +0 -1
index af2698ffca84..7bda33fb16e1 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/video/omap3_dss.c +0 -1
index 432b16bfbfe7..0b7ce348d5ad 100644
@@ -25,7 +25,6 @@
   * MA 02111-1307 USA
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch/dss.h>
 
drivers/video/orisetech_otm8009a.c +0 -1
index 848f174b6e48..a29e909decc9 100644
@@ -7,7 +7,6 @@
   * This otm8009a panel driver is inspired from the Linux Kernel driver
   * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/panel-uclass.c +0 -1
index 1f7e20e0b506..52a3466dc8c1 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL
 
-#include <common.h>
  #include <dm.h>
  #include <panel.h>
 
drivers/video/pwm_backlight.c +0 -1
index 1c747d98d7ac..a4576c888cf0 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
  #include <log.h>
drivers/video/raydium-rm68200.c +0 -1
index f1fce55a2cb2..b8662ca22bf2 100644
@@ -7,7 +7,6 @@
   * This rm68200 panel driver is inspired from the Linux Kernel driver
   * drivers/gpu/drm/panel/panel-raydium-rm68200.c.
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/renesas-r61307.c +0 -1
index 3f5859055c98..a3697bce5ee3 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/renesas-r69328.c +0 -1
index 082f5bc3d0a0..9861c3fef11a 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c +0 -1
index fb784636e877..fa512173510b 100644
@@ -24,7 +24,6 @@
  #include <dm/lists.h>
  #include <linux/iopoll.h>
 
-#include <common.h>
  #include <log.h>
  #include <video.h>
  #include <dm/device-internal.h>
drivers/video/rockchip/rk3288_hdmi.c +0 -1
index efa87540340b..3d39f31a5ade 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3288_mipi.c +0 -1
index 9d42119c8261..850fe3107549 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3288_vop.c +0 -1
index a4683852ea0c..282831eaac44 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <regmap.h>
drivers/video/rockchip/rk3399_hdmi.c +0 -1
index 5f3f5d26886d..c7630ccf5558 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3399_mipi.c +0 -1
index b62d80866745..57e36eed6a99 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3399_vop.c +0 -1
index cb589c7537e6..17e1601e8144 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <log.h>
drivers/video/rockchip/rk_edp.c +0 -1
index 5f68a610e4ac..eb881ba4b0ef 100644
@@ -4,7 +4,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_hdmi.c +0 -1
index d31f6a4ff81b..0ac0a3a1ecd0 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_lvds.c +0 -1
index d0a015e31ee8..c969dae30b69 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/rockchip/rk_mipi.c +0 -1
index f14cbc6dbf7f..0a603083ba9a 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_vop.c +0 -1
index acc02e5d7c78..17dfe62c9dae 100644
@@ -4,7 +4,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/sandbox_dsi_host.c +0 -1
index c84a27ee3be6..7025ac986e3c 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <dsi_host.h>
drivers/video/sandbox_osd.c +0 -1
index 2a854d3958b7..bedc32b7c80e 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2018
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <malloc.h>
drivers/video/sandbox_sdl.c +0 -1
index 9081c7da62e4..69dfa9302735 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2013 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <log.h>
drivers/video/seps525.c +0 -1
index 74c8721e1e11..86cd301c4b91 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2020 Xilinx Inc.
   */
 
-#include <common.h>
  #include <command.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/video/simple_panel.c +0 -1
index 76a30427a59f..b6c5b058b2e9 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/simplefb.c +0 -1
index 33bb78bc3a3e..cb518b149cb5 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rob Clark
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <fdt_support.h>
drivers/video/ssd2828.c +0 -1
index 948f5e74d0fe..4334bbd72353 100644
@@ -9,7 +9,6 @@
   * interface for driving a MIPI compatible TFT display.
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <mipi_display.h>
  #include <asm/gpio.h>
drivers/video/stm32/stm32_dsi.c +0 -1
index a18c1e027a87..438ed41e8d5f 100644
@@ -10,7 +10,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dsi_host.h>
drivers/video/stm32/stm32_ltdc.c +0 -1
index 4f60ba8ebeeb..0a062c8939db 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/sunxi/lcdc.c +0 -1
index 73033c3b8589..264d775c1256 100644
@@ -7,7 +7,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
 
drivers/video/sunxi/sunxi_de2.c +0 -1
index e02d359cd259..154641b9a699 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/sunxi/sunxi_display.c +1 -1
index 8da44a1bb6d8..4a6a89ef9d26 100644
@@ -6,7 +6,7 @@
   * (C) Copyright 2014-2015 Hans de Goede <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <display.h>
  #include <dm.h>
  #include <cpu_func.h>
drivers/video/sunxi/sunxi_dw_hdmi.c +0 -1
index a5e8d39e98f8..b9c03ea03864 100644
@@ -6,7 +6,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <dw_hdmi.h>
drivers/video/sunxi/sunxi_lcd.c +0 -1
index 7a01cc343cac..953233fcd683 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Vasily Khoruzhick <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <log.h>
  #include <video_bridge.h>
drivers/video/sunxi/tve_common.c +0 -1
index 35251371d14f..7bc2b3b29090 100644
@@ -7,7 +7,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
 
  #include <asm/arch/tve.h>
  #include <asm/io.h>
drivers/video/tda19988.c +0 -1
index 244874390454..ebc8521c6edd 100644
@@ -5,7 +5,6 @@
   * Based on the Linux driver, (C) 2012 Texas Instruments
   */
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <i2c.h>
drivers/video/tdo-tl070wsh30.c +0 -1
index 273672db024a..d772958f46ed 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 BayLibre, SAS
   * Author: Neil Armstrong <[email protected]>
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/tegra124/display.c +1 -1
index 9261cc9384a2..abe31e27d84d 100644
@@ -5,7 +5,6 @@
   * Extracted from Chromium coreboot commit 3f59b13d
   */
 
-#include <common.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <edid.h>
@@ -14,6 +13,7 @@
  #include <edid.h>
  #include <log.h>
  #include <part.h>
+#include <time.h>
  #include <video.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/video/tegra124/dp.c +1 -1
index b27b1633bab5..763f7ee39fcd 100644
@@ -4,12 +4,12 @@
   * Copyright 2014 Google Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <div64.h>
  #include <errno.h>
  #include <log.h>
+#include <time.h>
  #include <video_bridge.h>
  #include <asm/io.h>
  #include <asm/arch-tegra/dc.h>
drivers/video/tegra124/sor.c +0 -1
index 258685182c7d..1ce5330c6bcf 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2011-2013, NVIDIA Corporation.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/video/tegra20/mipi-phy.c +0 -1
index c3ebc4074b53..576262e405d6 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2013 NVIDIA Corporation
   */
 
-#include <common.h>
  #include <linux/err.h>
 
  #include "mipi-phy.h"
drivers/video/tegra20/tegra-dsi.c +0 -1
index 13dae37806f1..35a8e6c176b3 100644
@@ -4,7 +4,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/video/tegra20/tegra-pwm-backlight.c +0 -1
index 5f93f57fe908..79d8a021a3ac 100644
@@ -6,7 +6,6 @@
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
  #include <backlight.h>
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/video/ti/tilcdc-panel.c +0 -1
index df95086a5151..d40765230600 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <clk.h>
  #include <display.h>
drivers/video/ti/tilcdc.c +0 -1
index 2734754ecde7..493e2f18cd2d 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/video/tidss/tidss_drv.c +0 -1
index 1380c6b69375..865d4bddb7f9 100644
@@ -9,7 +9,6 @@
   * Author: Tomi Valkeinen <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <log.h>
drivers/video/vesa.c +0 -1
index 50912c5c8bca..ab756ac8ea12 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pci.h>
drivers/video/vidconsole-uclass.c +0 -1
index 5d06e51ff236..80e7adf6a1a4 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
 
-#include <common.h>
  #include <abuf.h>
  #include <charset.h>
  #include <command.h>
drivers/video/video-uclass.c +0 -1
index 7b5d1dfbb3bd..ff1382f4a43b 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
  #include <bloblist.h>
  #include <console.h>
  #include <cpu_func.h>
drivers/video/video_bmp.c +0 -1
index 45f003c8251a..ad512d99a1b9 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2015 Google, Inc
   */
 
-#include <common.h>
  #include <bmp_layout.h>
  #include <dm.h>
  #include <log.h>
drivers/video/video_osd-uclass.c +0 -1
index 0d3aae4d8272..923686345ff7 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_OSD
 
-#include <common.h>
  #include <dm.h>
  #include <video_osd.h>
 
drivers/video/videomodes.c +0 -1
index 35955a5df7dd..d86d86798415 100644
@@ -55,7 +55,6 @@
  		      "myvideo" and setting the variable "videomode=myvideo"..
  ****************************************************************************/
 
-#include <common.h>
  #include <edid.h>
  #include <env.h>
  #include <errno.h>
drivers/video/zynqmp/zynqmp_dpsub.c +0 -1
index def4dcf6261a..1405b29cb8b9 100644
@@ -6,7 +6,6 @@
   * Xilinx displayport(DP) Tx Subsytem driver
   */
 
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <dm.h>
Reviewed-by on v1 74/81
#125 lore raw

Re: [PATCH 74/81] video: Remove <common.h> and add needed includes

In reply to Tom Rini
Quoted 4 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

Thanks,
- Kever

Quoted 1,501 lines

---
Cc: Anatolij Gustschin <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Matthias Brugger <[email protected]>
Cc: Peter Robinson <[email protected]>
Cc: Liviu Dudau <[email protected]>
Cc: Stephan Gerhold <[email protected]>
Cc: Linus Walleij <[email protected]>
Cc: Neil Armstrong <[email protected]>
Cc: Stefan Bosch <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Philipp Tomsich <[email protected]>
Cc: Kever Yang <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>
Cc: Jagan Teki <[email protected]>
Cc: Andre Przywara <[email protected]>
Cc: Thierry Reding <[email protected]>
Cc: Svyatoslav Ryhel <[email protected]>
Cc: Johan Jonker <[email protected]>

---
  drivers/video/anx9804.c                         | 1 -
  drivers/video/atmel_hlcdfb.c                    | 1 -
  drivers/video/atmel_lcdfb.c                     | 1 -
  drivers/video/backlight-uclass.c                | 1 -
  drivers/video/backlight_gpio.c                  | 1 -
  drivers/video/bcm2835.c                         | 1 -
  drivers/video/bmp.c                             | 1 -
  drivers/video/bochs.c                           | 1 -
  drivers/video/bridge/anx6345.c                  | 1 -
  drivers/video/bridge/ps862x.c                   | 1 -
  drivers/video/bridge/ptn3460.c                  | 1 -
  drivers/video/bridge/ssd2825.c                  | 1 -
  drivers/video/bridge/video-bridge-uclass.c      | 1 -
  drivers/video/broadwell_igd.c                   | 2 +-
  drivers/video/console_normal.c                  | 1 -
  drivers/video/console_rotate.c                  | 1 -
  drivers/video/console_truetype.c                | 1 -
  drivers/video/coreboot.c                        | 1 -
  drivers/video/display-uclass.c                  | 1 -
  drivers/video/dsi-host-uclass.c                 | 1 -
  drivers/video/dw_hdmi.c                         | 3 ++-
  drivers/video/dw_mipi_dsi.c                     | 1 -
  drivers/video/efi.c                             | 1 -
  drivers/video/endeavoru-panel.c                 | 1 -
  drivers/video/exynos/exynos_dp.c                | 1 -
  drivers/video/exynos/exynos_dp_lowlevel.c       | 1 -
  drivers/video/exynos/exynos_fb.c                | 1 -
  drivers/video/exynos/exynos_mipi_dsi.c          | 1 -
  drivers/video/exynos/exynos_mipi_dsi_common.c   | 1 -
  drivers/video/exynos/exynos_mipi_dsi_lowlevel.c | 1 -
  drivers/video/himax-hx8394.c                    | 1 -
  drivers/video/hitachi_tx18d42vm_lcd.c           | 1 -
  drivers/video/hx8238d.c                         | 1 -
  drivers/video/ihs_video_out.c                   | 1 -
  drivers/video/imx/ipu_common.c                  | 2 +-
  drivers/video/imx/ipu_disp.c                    | 1 -
  drivers/video/imx/mxc_ipuv3_fb.c                | 1 -
  drivers/video/ivybridge_igd.c                   | 1 -
  drivers/video/lm3533_backlight.c                | 1 -
  drivers/video/logicore_dp_tx.c                  | 1 -
  drivers/video/mali_dp.c                         | 1 -
  drivers/video/mcde_simple.c                     | 1 -
  drivers/video/meson/meson_canvas.c              | 1 -
  drivers/video/meson/meson_dw_hdmi.c             | 1 -
  drivers/video/meson/meson_plane.c               | 1 -
  drivers/video/meson/meson_vclk.c                | 1 -
  drivers/video/meson/meson_venc.c                | 1 -
  drivers/video/meson/meson_vpu.c                 | 1 -
  drivers/video/meson/meson_vpu_init.c            | 1 -
  drivers/video/mipi_dsi.c                        | 1 -
  drivers/video/mvebu_lcd.c                       | 1 -
  drivers/video/mxsfb.c                           | 1 -
  drivers/video/nexell/s5pxx18_dp.c               | 1 -
  drivers/video/nexell/s5pxx18_dp_hdmi.c          | 1 -
  drivers/video/nexell/s5pxx18_dp_lvds.c          | 2 +-
  drivers/video/nexell/s5pxx18_dp_mipi.c          | 1 -
  drivers/video/nexell/s5pxx18_dp_rgb.c           | 2 +-
  drivers/video/nexell/soc/s5pxx18_soc_disptop.h  | 1 +
  drivers/video/nexell_display.c                  | 1 -
  drivers/video/omap3_dss.c                       | 1 -
  drivers/video/orisetech_otm8009a.c              | 1 -
  drivers/video/panel-uclass.c                    | 1 -
  drivers/video/pwm_backlight.c                   | 1 -
  drivers/video/raydium-rm68200.c                 | 1 -
  drivers/video/renesas-r61307.c                  | 1 -
  drivers/video/renesas-r69328.c                  | 1 -
  drivers/video/rockchip/dw_mipi_dsi_rockchip.c   | 1 -
  drivers/video/rockchip/rk3288_hdmi.c            | 1 -
  drivers/video/rockchip/rk3288_mipi.c            | 1 -
  drivers/video/rockchip/rk3288_vop.c             | 1 -
  drivers/video/rockchip/rk3399_hdmi.c            | 1 -
  drivers/video/rockchip/rk3399_mipi.c            | 1 -
  drivers/video/rockchip/rk3399_vop.c             | 1 -
  drivers/video/rockchip/rk_edp.c                 | 1 -
  drivers/video/rockchip/rk_hdmi.c                | 1 -
  drivers/video/rockchip/rk_lvds.c                | 1 -
  drivers/video/rockchip/rk_mipi.c                | 1 -
  drivers/video/rockchip/rk_vop.c                 | 1 -
  drivers/video/sandbox_dsi_host.c                | 1 -
  drivers/video/sandbox_osd.c                     | 1 -
  drivers/video/sandbox_sdl.c                     | 1 -
  drivers/video/seps525.c                         | 1 -
  drivers/video/simple_panel.c                    | 1 -
  drivers/video/simplefb.c                        | 1 -
  drivers/video/ssd2828.c                         | 1 -
  drivers/video/stm32/stm32_dsi.c                 | 1 -
  drivers/video/stm32/stm32_ltdc.c                | 1 -
  drivers/video/sunxi/lcdc.c                      | 1 -
  drivers/video/sunxi/sunxi_de2.c                 | 1 -
  drivers/video/sunxi/sunxi_display.c             | 2 +-
  drivers/video/sunxi/sunxi_dw_hdmi.c             | 1 -
  drivers/video/sunxi/sunxi_lcd.c                 | 1 -
  drivers/video/sunxi/tve_common.c                | 1 -
  drivers/video/tda19988.c                        | 1 -
  drivers/video/tdo-tl070wsh30.c                  | 1 -
  drivers/video/tegra124/display.c                | 2 +-
  drivers/video/tegra124/dp.c                     | 2 +-
  drivers/video/tegra124/sor.c                    | 1 -
  drivers/video/tegra20/mipi-phy.c                | 1 -
  drivers/video/tegra20/tegra-dsi.c               | 1 -
  drivers/video/tegra20/tegra-pwm-backlight.c     | 1 -
  drivers/video/ti/tilcdc-panel.c                 | 1 -
  drivers/video/ti/tilcdc.c                       | 1 -
  drivers/video/tidss/tidss_drv.c                 | 1 -
  drivers/video/vesa.c                            | 1 -
  drivers/video/vidconsole-uclass.c               | 1 -
  drivers/video/video-uclass.c                    | 1 -
  drivers/video/video_bmp.c                       | 1 -
  drivers/video/video_osd-uclass.c                | 1 -
  drivers/video/videomodes.c                      | 1 -
  drivers/video/zynqmp/zynqmp_dpsub.c             | 1 -
  111 files changed, 10 insertions(+), 110 deletions(-)
drivers/video/anx9804.c +0 -1
index 52b5988ba5f2..a149e6f5b95d 100644
@@ -9,7 +9,6 @@
   * interface for driving eDP TFT displays.
   */
 
-#include <common.h>
  #include <i2c.h>
  #include <linux/delay.h>
  #include "anx98xx-edp.h"
drivers/video/atmel_hlcdfb.c +0 -1
index 652ba1418018..89bc0eeb680a 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2012 Atmel Corporation
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <log.h>
  #include <malloc.h>
drivers/video/atmel_lcdfb.c +0 -1
index 5a7a54ada70e..281c3a1d6632 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2007 Atmel Corporation
   */
 
-#include <common.h>
  #include <atmel_lcd.h>
  #include <dm.h>
  #include <fdtdec.h>
drivers/video/backlight-uclass.c +0 -1
index c14996d003c0..2a09b2da9106 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
 
drivers/video/backlight_gpio.c +0 -1
index eea824ab5e16..b26fa9a8acf1 100644
@@ -4,7 +4,6 @@
   * Author: Patrick Delaunay <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
  #include <log.h>
drivers/video/bcm2835.c +0 -1
index 63efa762db16..0c81e6066229 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2012 Stephen Warren
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video.h>
drivers/video/bmp.c +0 -1
index bab6fa7265af..291ed36440c8 100644
@@ -8,7 +8,6 @@
   * BMP handling routines
   */
 
-#include <common.h>
  #include <bmp_layout.h>
  #include <command.h>
  #include <dm.h>
drivers/video/bochs.c +0 -1
index 022ea38d4cfe..00e673a4db08 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY	UCLASS_VIDEO
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pci.h>
drivers/video/bridge/anx6345.c +0 -1
index 93fa25f16e31..8cee4c958bd8 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2017 Vasily Khoruzhick <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/video/bridge/ps862x.c +0 -1
index d1d22a6e235c..efd03752281c 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <i2c.h>
drivers/video/bridge/ptn3460.c +0 -1
index 4760f04108f7..5851e1ef15e9 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video_bridge.h>
drivers/video/bridge/ssd2825.c +0 -1
index f0ef3dafb93b..f978021c860e 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <log.h>
drivers/video/bridge/video-bridge-uclass.c +0 -1
index f389bc6b1475..2084a2e03ee8 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <edid.h>
drivers/video/broadwell_igd.c +1 -1
index 83b6c908a8db..a26154ab588f 100644
@@ -5,12 +5,12 @@
   * Copyright (C) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <bios_emul.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <init.h>
  #include <log.h>
+#include <time.h>
  #include <vesa.h>
  #include <video.h>
  #include <asm/cpu.h>
drivers/video/console_normal.c +0 -1
index 34ef5a522942..6f4194a18147 100644
@@ -6,7 +6,6 @@
   * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
   */
 
-#include <common.h>
  #include <charset.h>
  #include <dm.h>
  #include <video.h>
drivers/video/console_rotate.c +0 -1
index e4303dfb364c..dc9698362741 100644
@@ -6,7 +6,6 @@
   * (C) Copyright 2023 Dzmitry Sankouski <[email protected]>
   */
 
-#include <common.h>
  #include <charset.h>
  #include <dm.h>
  #include <video.h>
drivers/video/console_truetype.c +0 -1
index 28665a327575..c435162d3f94 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <abuf.h>
  #include <dm.h>
  #include <log.h>
drivers/video/coreboot.c +0 -1
index 5b718ae3e5a5..9aede2626423 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <init.h>
  #include <vesa.h>
drivers/video/display-uclass.c +0 -1
index 2da3d1d14e95..61a73e1bc2a6 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_DISPLAY
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <edid.h>
drivers/video/dsi-host-uclass.c +0 -1
index 6e5256eb1265..fde275ad7e2e 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_DSI_HOST
 
-#include <common.h>
  #include <dm.h>
  #include <dsi_host.h>
 
drivers/video/dw_hdmi.c +2 -1
index c217af97878e..35559cef2298 100644
@@ -5,13 +5,14 @@
   * Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <fdtdec.h>
  #include <log.h>
  #include <asm/io.h>
  #include <i2c.h>
  #include <media_bus_format.h>
+#include <time.h>
  #include <linux/delay.h>
+#include <linux/errno.h>
  #include "dw_hdmi.h"
 
  struct tmds_n_cts {
drivers/video/dw_mipi_dsi.c +0 -1
index a7e0784596a9..c74fe678d12a 100644
@@ -9,7 +9,6 @@
   * the Linux Kernel driver drivers/gpu/drm/bridge/synopsys/dw-mipi-dsi.c.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dsi_host.h>
  #include <dm.h>
drivers/video/efi.c +0 -1
index 28ac15ff61b9..78d123fad4be 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY LOGC_EFI
 
-#include <common.h>
  #include <dm.h>
  #include <efi_api.h>
  #include <log.h>
drivers/video/endeavoru-panel.c +0 -1
index 1bff641434e1..d4ba4d8b6da6 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/exynos/exynos_dp.c +0 -1
index 59838da6c926..b0afb2338fb7 100644
@@ -5,7 +5,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <fdtdec.h>
drivers/video/exynos/exynos_dp_lowlevel.c +0 -1
index ae500a702804..f007b319b20e 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/err.h>
drivers/video/exynos/exynos_fb.c +0 -1
index 86970a6d5d20..0407a3f51b0d 100644
@@ -7,7 +7,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <display.h>
  #include <div64.h>
  #include <dm.h>
drivers/video/exynos/exynos_mipi_dsi.c +0 -1
index 804fcd0b2484..edeb0a87bbb7 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <malloc.h>
  #include <fdtdec.h>
drivers/video/exynos/exynos_mipi_dsi_common.c +0 -1
index be67cebae7f2..fc2767adc38c 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/err.h>
drivers/video/exynos/exynos_mipi_dsi_lowlevel.c +0 -1
index 8111acd9a0b5..9f18b5da1026 100644
@@ -6,7 +6,6 @@
   * Author: Donghwa Lee <[email protected]>
   */
 
-#include <common.h>
  #include <asm/arch/dsim.h>
  #include <asm/arch/mipi_dsim.h>
  #include <asm/arch/power.h>
drivers/video/himax-hx8394.c +0 -1
index 63637b4db022..cb7f93e9c997 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (C) 2022 Ondrej Jirman <[email protected]>
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/hitachi_tx18d42vm_lcd.c +0 -1
index 95984fe3d3d1..68f7b75eef99 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2015 Hans de Goede <[email protected]>
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <linux/delay.h>
 
drivers/video/hx8238d.c +0 -1
index 6ee97cb4ff3a..2491a32810e2 100644
@@ -12,7 +12,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <panel.h>
  #include <spi.h>
drivers/video/ihs_video_out.c +0 -1
index 73b8f4bd1c9b..bf4d4995c36c 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach, Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <log.h>
drivers/video/imx/ipu_common.c +1 -1
index b0a99c9cd5d9..d582fb8ad9d9 100644
@@ -11,7 +11,7 @@
   */
 
  /* #define DEBUG */
-#include <common.h>
+#include <config.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/types.h>
drivers/video/imx/ipu_disp.c +0 -1
index 144322e4e26b..aaba7d135a46 100644
@@ -12,7 +12,6 @@
 
  /* #define DEBUG */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
  #include <linux/types.h>
drivers/video/imx/mxc_ipuv3_fb.c +0 -1
index 7e60385bcfa5..039b22086a93 100644
@@ -10,7 +10,6 @@
   * (C) Copyright 2004-2010 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <log.h>
  #include <part.h>
  #include <asm/cache.h>
drivers/video/ivybridge_igd.c +0 -1
index c2cc976618a1..ad688640733e 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Google, Inc
   */
 
-#include <common.h>
  #include <bios_emul.h>
  #include <dm.h>
  #include <errno.h>
drivers/video/lm3533_backlight.c +0 -1
index 00297a09b7fc..6b51fa0628e4 100644
@@ -6,7 +6,6 @@
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
  #include <backlight.h>
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/video/logicore_dp_tx.c +0 -1
index 624084d38bca..643a77a0f4e1 100644
@@ -9,7 +9,6 @@
   * Dirk Eibach,  Guntermann & Drunck GmbH, [email protected]
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/mali_dp.c +0 -1
index dbb2f5386171..c89212674624 100644
@@ -5,7 +5,6 @@
   *
   */
  #define DEBUG
-#include <common.h>
  #include <malloc.h>
  #include <video.h>
  #include <dm.h>
drivers/video/mcde_simple.c +0 -1
index 0924ceee3098..2ba5d0de1529 100644
@@ -1,7 +1,6 @@
  // SPDX-License-Identifier: GPL-2.0+
  /* Copyright (C) 2019 Stephan Gerhold */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <video.h>
drivers/video/meson/meson_canvas.c +0 -1
index eccac2f8f24a..dd4c546222d5 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
 
drivers/video/meson/meson_dw_hdmi.c +0 -1
index 259af1b45717..587df7beb9b0 100644
@@ -4,7 +4,6 @@
   * Author: Jorge Ramirez-Ortiz <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/meson/meson_plane.c +0 -1
index e3f784ecfe42..899ce22d067e 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <linux/bitfield.h>
drivers/video/meson/meson_vclk.c +0 -1
index e718a0074ed6..4761ff661e4e 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <edid.h>
  #include <linux/bitops.h>
drivers/video/meson/meson_venc.c +0 -1
index e7366dd2fdea..1bc6aaf73055 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <edid.h>
  #include <fdtdec.h>
drivers/video/meson/meson_vpu.c +0 -1
index 67d4ce7b3b49..ca627728743b 100644
@@ -6,7 +6,6 @@
   * Author: Neil Armstrong <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <efi_loader.h>
drivers/video/meson/meson_vpu_init.c +0 -1
index c9808e1c6317..0e34cefd1002 100644
@@ -8,7 +8,6 @@
 
  #define DEBUG
 
-#include <common.h>
  #include <dm.h>
  #include <asm/io.h>
  #include <linux/bitops.h>
drivers/video/mipi_dsi.c +0 -1
index ecacea1dbebd..dc949c8ae61f 100644
@@ -32,7 +32,6 @@
   *
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/mvebu_lcd.c +0 -1
index d3d07e5f8333..3fc5640b71ec 100644
@@ -5,7 +5,6 @@
   * Initialization of LCD interface and setup of SPLASH screen image
   */
 
-#include <common.h>
  #include <dm.h>
  #include <part.h>
  #include <video.h>
drivers/video/mxsfb.c +0 -1
index 515363f6a49b..792d6314d15e 100644
@@ -4,7 +4,6 @@
   *
   * Copyright (C) 2011-2013 Marek Vasut <[email protected]>
   */
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <env.h>
drivers/video/nexell/s5pxx18_dp.c +0 -1
index 2248f4790575..16a489b88dc2 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
  #include <log.h>
  #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_hdmi.c +0 -1
index 3f1fb8a5757b..109d9f28bb01 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
  #include <log.h>
 
drivers/video/nexell/s5pxx18_dp_lvds.c +1 -1
index f8ea63fdf1b3..5db8d2b73b14 100644
@@ -6,8 +6,8 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
+#include <stdio.h>
 
  #include <asm/arch/nexell.h>
  #include <asm/arch/reset.h>
drivers/video/nexell/s5pxx18_dp_mipi.c +0 -1
index 670272b26802..58493a825982 100644
@@ -6,7 +6,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
 
  #include <asm/arch/nexell.h>
drivers/video/nexell/s5pxx18_dp_rgb.c +1 -1
index 44e8edb02a22..6abb8b5e216b 100644
@@ -6,8 +6,8 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <errno.h>
+#include <stdio.h>
 
  #include <asm/arch/display.h>
 
drivers/video/nexell/soc/s5pxx18_soc_disptop.h +1 -0
index c7bf5043e605..4ad353256ebc 100644
@@ -8,6 +8,7 @@
  #ifndef _S5PXX18_SOC_DISPTOP_H_
  #define _S5PXX18_SOC_DISPTOP_H_
 
+#include <linux/types.h>
  #include "s5pxx18_soc_disptype.h"
 
  #define NUMBER_OF_DISPTOP_MODULE	1
drivers/video/nexell_display.c +0 -1
index af2698ffca84..7bda33fb16e1 100644
@@ -8,7 +8,6 @@
   */
 
  #include <config.h>
-#include <common.h>
  #include <command.h>
  #include <dm.h>
  #include <mapmem.h>
drivers/video/omap3_dss.c +0 -1
index 432b16bfbfe7..0b7ce348d5ad 100644
@@ -25,7 +25,6 @@
   * MA 02111-1307 USA
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch/dss.h>
 
drivers/video/orisetech_otm8009a.c +0 -1
index 848f174b6e48..a29e909decc9 100644
@@ -7,7 +7,6 @@
   * This otm8009a panel driver is inspired from the Linux Kernel driver
   * drivers/gpu/drm/panel/panel-orisetech-otm8009a.c.
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/panel-uclass.c +0 -1
index 1f7e20e0b506..52a3466dc8c1 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL
 
-#include <common.h>
  #include <dm.h>
  #include <panel.h>
 
drivers/video/pwm_backlight.c +0 -1
index 1c747d98d7ac..a4576c888cf0 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
-#include <common.h>
  #include <dm.h>
  #include <backlight.h>
  #include <log.h>
drivers/video/raydium-rm68200.c +0 -1
index f1fce55a2cb2..b8662ca22bf2 100644
@@ -7,7 +7,6 @@
   * This rm68200 panel driver is inspired from the Linux Kernel driver
   * drivers/gpu/drm/panel/panel-raydium-rm68200.c.
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/renesas-r61307.c +0 -1
index 3f5859055c98..a3697bce5ee3 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/renesas-r69328.c +0 -1
index 082f5bc3d0a0..9861c3fef11a 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <panel.h>
drivers/video/rockchip/dw_mipi_dsi_rockchip.c +0 -1
index fb784636e877..fa512173510b 100644
@@ -24,7 +24,6 @@
  #include <dm/lists.h>
  #include <linux/iopoll.h>
 
-#include <common.h>
  #include <log.h>
  #include <video.h>
  #include <dm/device-internal.h>
drivers/video/rockchip/rk3288_hdmi.c +0 -1
index efa87540340b..3d39f31a5ade 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3288_mipi.c +0 -1
index 9d42119c8261..850fe3107549 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3288_vop.c +0 -1
index a4683852ea0c..282831eaac44 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <regmap.h>
drivers/video/rockchip/rk3399_hdmi.c +0 -1
index 5f3f5d26886d..c7630ccf5558 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2017 Theobroma Systems Design und Consulting GmbH
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3399_mipi.c +0 -1
index b62d80866745..57e36eed6a99 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk3399_vop.c +0 -1
index cb589c7537e6..17e1601e8144 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <log.h>
drivers/video/rockchip/rk_edp.c +0 -1
index 5f68a610e4ac..eb881ba4b0ef 100644
@@ -4,7 +4,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_hdmi.c +0 -1
index d31f6a4ff81b..0ac0a3a1ecd0 100644
@@ -5,7 +5,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_lvds.c +0 -1
index d0a015e31ee8..c969dae30b69 100644
@@ -3,7 +3,6 @@
   * Copyright 2016 Rockchip Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/rockchip/rk_mipi.c +0 -1
index f14cbc6dbf7f..0a603083ba9a 100644
@@ -4,7 +4,6 @@
   * Author: Eric Gao <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/rockchip/rk_vop.c +0 -1
index acc02e5d7c78..17dfe62c9dae 100644
@@ -4,7 +4,6 @@
   * Copyright 2014 Rockchip Inc.
   */
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/sandbox_dsi_host.c +0 -1
index c84a27ee3be6..7025ac986e3c 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2019, STMicroelectronics - All Rights Reserved
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <dsi_host.h>
drivers/video/sandbox_osd.c +0 -1
index 2a854d3958b7..bedc32b7c80e 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2018
   * Mario Six, Guntermann & Drunck GmbH, [email protected]
   */
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <malloc.h>
drivers/video/sandbox_sdl.c +0 -1
index 9081c7da62e4..69dfa9302735 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2013 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <log.h>
drivers/video/seps525.c +0 -1
index 74c8721e1e11..86cd301c4b91 100644
@@ -6,7 +6,6 @@
   * Copyright (C) 2020 Xilinx Inc.
   */
 
-#include <common.h>
  #include <command.h>
  #include <cpu_func.h>
  #include <dm.h>
drivers/video/simple_panel.c +0 -1
index 76a30427a59f..b6c5b058b2e9 100644
@@ -4,7 +4,6 @@
   * Written by Simon Glass <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/simplefb.c +0 -1
index 33bb78bc3a3e..cb518b149cb5 100644
@@ -3,7 +3,6 @@
   * (C) Copyright 2017 Rob Clark
   */
 
-#include <common.h>
  #include <dm.h>
  #include <fdtdec.h>
  #include <fdt_support.h>
drivers/video/ssd2828.c +0 -1
index 948f5e74d0fe..4334bbd72353 100644
@@ -9,7 +9,6 @@
   * interface for driving a MIPI compatible TFT display.
   */
 
-#include <common.h>
  #include <malloc.h>
  #include <mipi_display.h>
  #include <asm/gpio.h>
drivers/video/stm32/stm32_dsi.c +0 -1
index a18c1e027a87..438ed41e8d5f 100644
@@ -10,7 +10,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_BRIDGE
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dsi_host.h>
drivers/video/stm32/stm32_ltdc.c +0 -1
index 4f60ba8ebeeb..0a062c8939db 100644
@@ -7,7 +7,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
  #include <clk.h>
  #include <display.h>
  #include <dm.h>
drivers/video/sunxi/lcdc.c +0 -1
index 73033c3b8589..264d775c1256 100644
@@ -7,7 +7,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <log.h>
  #include <linux/delay.h>
 
drivers/video/sunxi/sunxi_de2.c +0 -1
index e02d359cd259..154641b9a699 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <edid.h>
drivers/video/sunxi/sunxi_display.c +1 -1
index 8da44a1bb6d8..4a6a89ef9d26 100644
@@ -6,7 +6,7 @@
   * (C) Copyright 2014-2015 Hans de Goede <[email protected]>
   */
 
-#include <common.h>
+#include <config.h>
  #include <display.h>
  #include <dm.h>
  #include <cpu_func.h>
drivers/video/sunxi/sunxi_dw_hdmi.c +0 -1
index a5e8d39e98f8..b9c03ea03864 100644
@@ -6,7 +6,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <dw_hdmi.h>
drivers/video/sunxi/sunxi_lcd.c +0 -1
index 7a01cc343cac..953233fcd683 100644
@@ -5,7 +5,6 @@
   * (C) Copyright 2017 Vasily Khoruzhick <[email protected]>
   */
 
-#include <common.h>
  #include <display.h>
  #include <log.h>
  #include <video_bridge.h>
drivers/video/sunxi/tve_common.c +0 -1
index 35251371d14f..7bc2b3b29090 100644
@@ -7,7 +7,6 @@
   * (C) Copyright 2017 Jernej Skrabec <[email protected]>
   */
 
-#include <common.h>
 
  #include <asm/arch/tve.h>
  #include <asm/io.h>
drivers/video/tda19988.c +0 -1
index 244874390454..ebc8521c6edd 100644
@@ -5,7 +5,6 @@
   * Based on the Linux driver, (C) 2012 Texas Instruments
   */
 
-#include <common.h>
  #include <dm.h>
  #include <display.h>
  #include <i2c.h>
drivers/video/tdo-tl070wsh30.c +0 -1
index 273672db024a..d772958f46ed 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 BayLibre, SAS
   * Author: Neil Armstrong <[email protected]>
   */
-#include <common.h>
  #include <backlight.h>
  #include <dm.h>
  #include <mipi_dsi.h>
drivers/video/tegra124/display.c +1 -1
index 9261cc9384a2..abe31e27d84d 100644
@@ -5,7 +5,6 @@
   * Extracted from Chromium coreboot commit 3f59b13d
   */
 
-#include <common.h>
  #include <bootstage.h>
  #include <dm.h>
  #include <edid.h>
@@ -14,6 +13,7 @@
  #include <edid.h>
  #include <log.h>
  #include <part.h>
+#include <time.h>
  #include <video.h>
  #include <asm/gpio.h>
  #include <asm/io.h>
drivers/video/tegra124/dp.c +1 -1
index b27b1633bab5..763f7ee39fcd 100644
@@ -4,12 +4,12 @@
   * Copyright 2014 Google Inc.
   */
 
-#include <common.h>
  #include <display.h>
  #include <dm.h>
  #include <div64.h>
  #include <errno.h>
  #include <log.h>
+#include <time.h>
  #include <video_bridge.h>
  #include <asm/io.h>
  #include <asm/arch-tegra/dc.h>
drivers/video/tegra124/sor.c +0 -1
index 258685182c7d..1ce5330c6bcf 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2011-2013, NVIDIA Corporation.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/video/tegra20/mipi-phy.c +0 -1
index c3ebc4074b53..576262e405d6 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2013 NVIDIA Corporation
   */
 
-#include <common.h>
  #include <linux/err.h>
 
  #include "mipi-phy.h"
drivers/video/tegra20/tegra-dsi.c +0 -1
index 13dae37806f1..35a8e6c176b3 100644
@@ -4,7 +4,6 @@
   * Copyright (c) 2022 Svyatoslav Ryhel <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <misc.h>
drivers/video/tegra20/tegra-pwm-backlight.c +0 -1
index 5f93f57fe908..79d8a021a3ac 100644
@@ -6,7 +6,6 @@
  #define LOG_CATEGORY UCLASS_PANEL_BACKLIGHT
 
  #include <backlight.h>
-#include <common.h>
  #include <dm.h>
  #include <i2c.h>
  #include <log.h>
drivers/video/ti/tilcdc-panel.c +0 -1
index df95086a5151..d40765230600 100644
@@ -5,7 +5,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <backlight.h>
  #include <clk.h>
  #include <display.h>
drivers/video/ti/tilcdc.c +0 -1
index 2734754ecde7..493e2f18cd2d 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2020 Dario Binacchi <[email protected]>
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/video/tidss/tidss_drv.c +0 -1
index 1380c6b69375..865d4bddb7f9 100644
@@ -9,7 +9,6 @@
   * Author: Tomi Valkeinen <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <log.h>
drivers/video/vesa.c +0 -1
index 50912c5c8bca..ab756ac8ea12 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016, Bin Meng <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <pci.h>
drivers/video/vidconsole-uclass.c +0 -1
index 5d06e51ff236..80e7adf6a1a4 100644
@@ -9,7 +9,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_CONSOLE
 
-#include <common.h>
  #include <abuf.h>
  #include <charset.h>
  #include <command.h>
drivers/video/video-uclass.c +0 -1
index 7b5d1dfbb3bd..ff1382f4a43b 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO
 
-#include <common.h>
  #include <bloblist.h>
  #include <console.h>
  #include <cpu_func.h>
drivers/video/video_bmp.c +0 -1
index 45f003c8251a..ad512d99a1b9 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2015 Google, Inc
   */
 
-#include <common.h>
  #include <bmp_layout.h>
  #include <dm.h>
  #include <log.h>
drivers/video/video_osd-uclass.c +0 -1
index 0d3aae4d8272..923686345ff7 100644
@@ -6,7 +6,6 @@
 
  #define LOG_CATEGORY UCLASS_VIDEO_OSD
 
-#include <common.h>
  #include <dm.h>
  #include <video_osd.h>
 
drivers/video/videomodes.c +0 -1
index 35955a5df7dd..d86d86798415 100644
@@ -55,7 +55,6 @@
  		      "myvideo" and setting the variable "videomode=myvideo"..
  ****************************************************************************/
 
-#include <common.h>
  #include <edid.h>
  #include <env.h>
  #include <errno.h>
drivers/video/zynqmp/zynqmp_dpsub.c +0 -1
index def4dcf6261a..1405b29cb8b9 100644
@@ -6,7 +6,6 @@
   * Xilinx displayport(DP) Tx Subsytem driver
   */
 
-#include <common.h>
  #include <clk.h>
  #include <cpu_func.h>
  #include <dm.h>
author
#126 lore raw

PATCH 75/81 virtio: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Bin Meng <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Sughosh Ganu <[email protected]>
Cc: Heinrich Schuchardt <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/virtio/virtio-uclass.c     | 1 -
 drivers/virtio/virtio_blk.c        | 1 -
 drivers/virtio/virtio_mmio.c       | 1 -
 drivers/virtio/virtio_net.c        | 1 -
 drivers/virtio/virtio_pci_legacy.c | 1 -
 drivers/virtio/virtio_pci_modern.c | 1 -
 drivers/virtio/virtio_ring.c       | 1 -
 drivers/virtio/virtio_rng.c        | 1 -
 drivers/virtio/virtio_sandbox.c    | 1 -
 include/virtio.h                   | 1 +
 10 files changed, 1 insertion(+), 9 deletions(-)
drivers/virtio/virtio-uclass.c +0 -1
index c54201627352..1dbc1a56aa21 100644
@@ -17,7 +17,6 @@
 
 #define LOG_CATEGORY UCLASS_VIRTIO
 
-#include <common.h>
 #include <bootdev.h>
 #include <dm.h>
 #include <log.h>
drivers/virtio/virtio_blk.c +0 -1
index 95810582867c..3404f61eba5f 100644
@@ -6,7 +6,6 @@
 
 #define LOG_CATEGORY UCLASS_VIRTIO
 
-#include <common.h>
 #include <blk.h>
 #include <dm.h>
 #include <part.h>
drivers/virtio/virtio_mmio.c +0 -1
index 78c15c821b4e..1cd737aca249 100644
@@ -7,7 +7,6 @@
  * Ported from Linux drivers/virtio/virtio_mmio.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <virtio_types.h>
drivers/virtio/virtio_net.c +0 -1
index 1794f73a8de8..0e5367a085e4 100644
@@ -4,7 +4,6 @@
  * Copyright (C) 2018, Bin Meng <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <net.h>
 #include <virtio_types.h>
drivers/virtio/virtio_pci_legacy.c +0 -1
index aa89604ae84d..15f8c6e7d257 100644
@@ -6,7 +6,6 @@
  * Ported from Linux drivers/virtio/virtio_pci*.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <virtio_types.h>
drivers/virtio/virtio_pci_modern.c +0 -1
index 3cdc2d2d6fd3..5850e0c18c69 100644
@@ -6,7 +6,6 @@
  * Ported from Linux drivers/virtio/virtio_pci*.c
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <virtio_types.h>
drivers/virtio/virtio_ring.c +0 -1
index c9adcce5c09b..306fa5b3f681 100644
@@ -7,7 +7,6 @@
  */
 
 #include <bouncebuf.h>
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <malloc.h>
drivers/virtio/virtio_rng.c +0 -1
index 786359a6e364..90a371a59cc7 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2019, Linaro Limited
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <rng.h>
drivers/virtio/virtio_sandbox.c +0 -1
index b34f1d60455e..0f1ebef22e58 100644
@@ -5,7 +5,6 @@
  * VirtIO Sandbox transport driver, for testing purpose only
  */
 
-#include <common.h>
 #include <dm.h>
 #include <virtio_types.h>
 #include <virtio.h>
include/virtio.h +1 -0
index 062a24630ce9..1ab0ec5f39f5 100644
@@ -23,6 +23,7 @@
 #include <virtio_types.h>
 #include <linux/bitops.h>
 #include <linux/bug.h>
+#include <linux/typecheck.h>
 #define VIRTIO_ID_NET		1 /* virtio net */
 #define VIRTIO_ID_BLOCK		2 /* virtio block */
 #define VIRTIO_ID_RNG		4 /* virtio rng */
Signature · 1 line
2.34.1
author
#127 lore raw

PATCH 76/81 w1: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>

---
 drivers/w1/mxc_w1.c    | 1 -
 drivers/w1/w1-gpio.c   | 1 -
 drivers/w1/w1-uclass.c | 1 -
 3 files changed, 3 deletions(-)
drivers/w1/mxc_w1.c +0 -1
index b96c1a00bf24..9ebfc13c83aa 100644
@@ -17,7 +17,6 @@
  * Martin Fuzzey <[email protected]>
  */
 
-#include <common.h>
 #include <asm/arch/clock.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/w1/w1-gpio.c +0 -1
index 9346f810ce11..759f94e224e4 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <w1.h>
drivers/w1/w1-uclass.c +0 -1
index a4247ecd6233..9637ed242573 100644
@@ -14,7 +14,6 @@
 
 #define LOG_CATEGORY UCLASS_W1
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
Signature · 1 line
2.34.1
author
#128 lore raw

PATCH 77/81 w1-eeprom: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Tom Rini <[email protected]>
Cc: Simon Glass <[email protected]>

---
 drivers/w1-eeprom/ds24xxx.c          | 1 -
 drivers/w1-eeprom/ds2502.c           | 1 -
 drivers/w1-eeprom/eep_sandbox.c      | 1 -
 drivers/w1-eeprom/w1-eeprom-uclass.c | 1 -
 4 files changed, 4 deletions(-)
drivers/w1-eeprom/ds24xxx.c +0 -1
index 4be378b43d03..413d8bc58814 100644
@@ -7,7 +7,6 @@
  *
  */
 
-#include <common.h>
 #include <linux/err.h>
 #include <dm.h>
 #include <w1-eeprom.h>
drivers/w1-eeprom/ds2502.c +0 -1
index a67f5edd0feb..db9f41e97269 100644
@@ -20,7 +20,6 @@
  * Martin Fuzzey <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dm/device_compat.h>
 #include <linux/err.h>
drivers/w1-eeprom/eep_sandbox.c +0 -1
index 27c7f9f1b6b8..2a69ca27de79 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <linux/err.h>
 #include <dm.h>
 #include <w1-eeprom.h>
drivers/w1-eeprom/w1-eeprom-uclass.c +0 -1
index 70ba537243f8..3919aad3c8af 100644
@@ -12,7 +12,6 @@
 
 #define LOG_CATEGORY UCLASS_W1_EEPROM
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <w1.h>
Signature · 1 line
2.34.1
author
#129 lore raw

PATCH 78/81 watchdog: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Stefan Roese <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Huan Wang <[email protected]>
Cc: Angelo Dureghello <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Priyanka Jain <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>

---
 drivers/watchdog/armada-37xx-wdt.c   | 1 -
 drivers/watchdog/ast2600_wdt.c       | 1 -
 drivers/watchdog/ast_wdt.c           | 1 -
 drivers/watchdog/at91sam9_wdt.c      | 1 -
 drivers/watchdog/bcm6345_wdt.c       | 1 -
 drivers/watchdog/cdns_wdt.c          | 1 -
 drivers/watchdog/cortina_wdt.c       | 1 -
 drivers/watchdog/designware_wdt.c    | 1 -
 drivers/watchdog/ftwdt010_wdt.c      | 1 -
 drivers/watchdog/imx_watchdog.c      | 1 -
 drivers/watchdog/mcf_wdt.c           | 2 +-
 drivers/watchdog/mpc8xxx_wdt.c       | 1 -
 drivers/watchdog/mt7621_wdt.c        | 1 -
 drivers/watchdog/mtk_wdt.c           | 1 -
 drivers/watchdog/omap_wdt.c          | 1 -
 drivers/watchdog/orion_wdt.c         | 1 -
 drivers/watchdog/rti_wdt.c           | 1 -
 drivers/watchdog/s5p_wdt.c           | 1 -
 drivers/watchdog/sandbox_alarm-wdt.c | 1 -
 drivers/watchdog/sandbox_wdt.c       | 1 -
 drivers/watchdog/sbsa_gwdt.c         | 1 -
 drivers/watchdog/sl28cpld-wdt.c      | 1 -
 drivers/watchdog/sp805_wdt.c         | 1 -
 drivers/watchdog/stm32mp_wdt.c       | 1 -
 drivers/watchdog/tangier_wdt.c       | 1 -
 drivers/watchdog/ulp_wdog.c          | 1 -
 drivers/watchdog/wdt-uclass.c        | 1 -
 drivers/watchdog/xilinx_tb_wdt.c     | 1 -
 drivers/watchdog/xilinx_wwdt.c       | 1 -
 29 files changed, 1 insertion(+), 29 deletions(-)
drivers/watchdog/armada-37xx-wdt.c +0 -1
index e09f5ac9e34e..4b51178e1b8c 100644
@@ -5,7 +5,6 @@
  * Marek Behún <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <wdt.h>
 #include <asm/global_data.h>
drivers/watchdog/ast2600_wdt.c +0 -1
index bc9842089bea..190490f3692b 100644
@@ -3,7 +3,6 @@
  * Copyright (c) 2020 Aspeed Technology, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/watchdog/ast_wdt.c +0 -1
index f7b5a1adc108..e61e13fdc49d 100644
@@ -3,7 +3,6 @@
  * Copyright 2017 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <log.h>
drivers/watchdog/at91sam9_wdt.c +0 -1
index 647ae325e9ae..c809a8936b89 100644
@@ -18,7 +18,6 @@
 #include <asm/global_data.h>
 #include <asm/io.h>
 #include <asm/arch/at91_wdt.h>
-#include <common.h>
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
drivers/watchdog/bcm6345_wdt.c +0 -1
index 677b1347ca7a..6ebe901c2b82 100644
@@ -7,7 +7,6 @@
  *	Copyright (C) 2008 Florian Fainelli <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <wdt.h>
drivers/watchdog/cdns_wdt.c +0 -1
index 743ab6487bcd..cb5a786c5891 100644
@@ -6,7 +6,6 @@
  * Author(s):	Shreenidhi Shedi <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <wdt.h>
drivers/watchdog/cortina_wdt.c +0 -1
index 7ab9d7b2db97..9f09ac0e15ff 100644
@@ -4,7 +4,6 @@
  *
  */
 
-#include <common.h>
 #include <dm.h>
 #include <hang.h>
 #include <asm/io.h>
drivers/watchdog/designware_wdt.c +0 -1
index b22e0ee06a4e..bd9d7105366b 100644
@@ -4,7 +4,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <reset.h>
 #include <wdt.h>
drivers/watchdog/ftwdt010_wdt.c +0 -1
index 1f5f301b1251..4769b967e527 100644
@@ -14,7 +14,6 @@
  * 22/08/2022 Port to DM
  */
 
-#include <common.h>
 #include <dm.h>
 #include <wdt.h>
 #include <log.h>
drivers/watchdog/imx_watchdog.c +0 -1
index 894158b304a7..ea770217e590 100644
@@ -4,7 +4,6 @@
  * Licensed under the GPL-2 or later.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
 #include <hang.h>
drivers/watchdog/mcf_wdt.c +1 -1
index b36488bb5b96..5092a256af0c 100644
@@ -6,7 +6,7 @@
  *
  */
 
-#include <common.h>
+#include <config.h>
 #include <dm.h>
 #include <hang.h>
 #include <asm/io.h>
drivers/watchdog/mpc8xxx_wdt.c +0 -1
index f28636ca9015..036ff690d3fd 100644
@@ -3,7 +3,6 @@
  * Copyright 2017 CS Systemes d'Information
  */
 
-#include <common.h>
 #include <env.h>
 #include <dm.h>
 #include <wdt.h>
drivers/watchdog/mt7621_wdt.c +0 -1
index f7d201b921a1..6308d9632a81 100644
@@ -9,7 +9,6 @@
  *   Copyright (C) 2013 John Crispin <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <wdt.h>
 #include <asm/global_data.h>
drivers/watchdog/mtk_wdt.c +0 -1
index 368b36849c8d..706deb9da846 100644
@@ -6,7 +6,6 @@
  * Author: Ryder Lee <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <hang.h>
 #include <wdt.h>
drivers/watchdog/omap_wdt.c +0 -1
index f0e57b4f7286..5fd02ddf564f 100644
@@ -36,7 +36,6 @@
  *	Use the driver model and standard identifiers; handle bigger timeouts.
  */
 
-#include <common.h>
 #include <log.h>
 #include <watchdog.h>
 #include <asm/ti-common/omap_wdt.h>
drivers/watchdog/orion_wdt.c +0 -1
index 127766df58af..4562b2a37e34 100644
@@ -12,7 +12,6 @@
  * warranty of any kind, whether express or implied.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <clk.h>
 #include <log.h>
drivers/watchdog/rti_wdt.c +0 -1
index 8d93f19b984a..99168d0cad03 100644
@@ -8,7 +8,6 @@
  * Derived from linux/drivers/watchdog/rti_wdt.c
  */
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <dm/device_compat.h>
drivers/watchdog/s5p_wdt.c +0 -1
index 80524a00101b..c244f15a8952 100644
@@ -4,7 +4,6 @@
  * Minkyu Kang <[email protected]>
  */
 
-#include <common.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/watchdog.h>
drivers/watchdog/sandbox_alarm-wdt.c +0 -1
index 71bb5d924ea5..8dbbfc249e7c 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <dm.h>
 #include <os.h>
 #include <wdt.h>
drivers/watchdog/sandbox_wdt.c +0 -1
index 535614f04d63..cd5eadbfd213 100644
@@ -3,7 +3,6 @@
  * Copyright 2017 Google, Inc
  */
 
-#include <common.h>
 #include <dm.h>
 #include <wdt.h>
 #include <asm/state.h>
drivers/watchdog/sbsa_gwdt.c +0 -1
index 96d04665d52c..03585529bb63 100644
@@ -7,7 +7,6 @@
 
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
 #include <dm/device.h>
 #include <dm/fdtaddr.h>
 #include <dm/read.h>
drivers/watchdog/sl28cpld-wdt.c +0 -1
index af5a6b1a28ac..c5b4f8a9f665 100644
@@ -5,7 +5,6 @@
  * Copyright (c) 2021 Michael Walle <[email protected]>
  */
 
-#include <common.h>
 #include <dm.h>
 #include <wdt.h>
 #include <sl28cpld.h>
drivers/watchdog/sp805_wdt.c +0 -1
index 6d58fd3cfdab..10fe3e282323 100644
@@ -8,7 +8,6 @@
 #include <log.h>
 #include <asm/global_data.h>
 #include <asm/io.h>
-#include <common.h>
 #include <clk.h>
 #include <dm/device.h>
 #include <dm/fdtaddr.h>
drivers/watchdog/stm32mp_wdt.c +0 -1
index 7ebcd2552668..97ab8cfe7ab1 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_WDT
 
-#include <common.h>
 #include <clk.h>
 #include <dm.h>
 #include <log.h>
drivers/watchdog/tangier_wdt.c +0 -1
index bdc65597dcff..8fbfac31b1e1 100644
@@ -2,7 +2,6 @@
 /*
  * Copyright (c) 2017 Intel Corporation
  */
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <wdt.h>
drivers/watchdog/ulp_wdog.c +0 -1
index 0eea04ed2c6e..83f19dc0e86b 100644
@@ -3,7 +3,6 @@
  * Copyright (C) 2016 Freescale Semiconductor, Inc.
  */
 
-#include <common.h>
 #include <cpu_func.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
drivers/watchdog/wdt-uclass.c +0 -1
index 417e8d7eef95..c88312ec7218 100644
@@ -5,7 +5,6 @@
 
 #define LOG_CATEGORY UCLASS_WDT
 
-#include <common.h>
 #include <cyclic.h>
 #include <div64.h>
 #include <dm.h>
drivers/watchdog/xilinx_tb_wdt.c +0 -1
index b38c40001611..8a8e55370a0e 100644
@@ -8,7 +8,6 @@
  * Copyright (c) 2011-2018 Xilinx Inc.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <log.h>
 #include <wdt.h>
drivers/watchdog/xilinx_wwdt.c +0 -1
index 963ab22fb452..41eff1a46450 100644
@@ -9,7 +9,6 @@
  */
 
 #include <clk.h>
-#include <common.h>
 #include <dm.h>
 #include <regmap.h>
 #include <wdt.h>
Signature · 1 line
2.34.1
Acked-by on v1 78/81
#130 lore raw

Re: [PATCH 78/81] watchdog: Remove <common.h> and add needed includes

Hi Tom,

Quoted 402 lines · Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Stefan Roese <[email protected]>
Cc: Tom Rini <[email protected]>
Cc: Ryan Chen <[email protected]>
Cc: Chia-Wei Wang <[email protected]>
Cc: Aspeed BMC SW team <[email protected]>
Cc: Joel Stanley <[email protected]>
Cc: Michal Simek <[email protected]>
Cc: Alex Nemirovsky <[email protected]>
Cc: Huan Wang <[email protected]>
Cc: Angelo Dureghello <[email protected]>
Cc: Ryder Lee <[email protected]>
Cc: Weijie Gao <[email protected]>
Cc: Chunfeng Yun <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Simon Glass <[email protected]>
Cc: Priyanka Jain <[email protected]>
Cc: Michael Walle <[email protected]>
Cc: Patrick Delaunay <[email protected]>
Cc: Patrice Chotard <[email protected]>

---
  drivers/watchdog/armada-37xx-wdt.c   | 1 -
  drivers/watchdog/ast2600_wdt.c       | 1 -
  drivers/watchdog/ast_wdt.c           | 1 -
  drivers/watchdog/at91sam9_wdt.c      | 1 -
  drivers/watchdog/bcm6345_wdt.c       | 1 -
  drivers/watchdog/cdns_wdt.c          | 1 -
  drivers/watchdog/cortina_wdt.c       | 1 -
  drivers/watchdog/designware_wdt.c    | 1 -
  drivers/watchdog/ftwdt010_wdt.c      | 1 -
  drivers/watchdog/imx_watchdog.c      | 1 -
  drivers/watchdog/mcf_wdt.c           | 2 +-
  drivers/watchdog/mpc8xxx_wdt.c       | 1 -
  drivers/watchdog/mt7621_wdt.c        | 1 -
  drivers/watchdog/mtk_wdt.c           | 1 -
  drivers/watchdog/omap_wdt.c          | 1 -
  drivers/watchdog/orion_wdt.c         | 1 -
  drivers/watchdog/rti_wdt.c           | 1 -
  drivers/watchdog/s5p_wdt.c           | 1 -
  drivers/watchdog/sandbox_alarm-wdt.c | 1 -
  drivers/watchdog/sandbox_wdt.c       | 1 -
  drivers/watchdog/sbsa_gwdt.c         | 1 -
  drivers/watchdog/sl28cpld-wdt.c      | 1 -
  drivers/watchdog/sp805_wdt.c         | 1 -
  drivers/watchdog/stm32mp_wdt.c       | 1 -
  drivers/watchdog/tangier_wdt.c       | 1 -
  drivers/watchdog/ulp_wdog.c          | 1 -
  drivers/watchdog/wdt-uclass.c        | 1 -
  drivers/watchdog/xilinx_tb_wdt.c     | 1 -
  drivers/watchdog/xilinx_wwdt.c       | 1 -
  29 files changed, 1 insertion(+), 29 deletions(-)
drivers/watchdog/armada-37xx-wdt.c +0 -1
index e09f5ac9e34e..4b51178e1b8c 100644
@@ -5,7 +5,6 @@
   * Marek Behún <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <wdt.h>
  #include <asm/global_data.h>
drivers/watchdog/ast2600_wdt.c +0 -1
index bc9842089bea..190490f3692b 100644
@@ -3,7 +3,6 @@
   * Copyright (c) 2020 Aspeed Technology, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/watchdog/ast_wdt.c +0 -1
index f7b5a1adc108..e61e13fdc49d 100644
@@ -3,7 +3,6 @@
   * Copyright 2017 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <errno.h>
  #include <log.h>
drivers/watchdog/at91sam9_wdt.c +0 -1
index 647ae325e9ae..c809a8936b89 100644
@@ -18,7 +18,6 @@
  #include <asm/global_data.h>
  #include <asm/io.h>
  #include <asm/arch/at91_wdt.h>
-#include <common.h>
  #include <div64.h>
  #include <dm.h>
  #include <errno.h>
drivers/watchdog/bcm6345_wdt.c +0 -1
index 677b1347ca7a..6ebe901c2b82 100644
@@ -7,7 +7,6 @@
   *	Copyright (C) 2008 Florian Fainelli <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <wdt.h>
drivers/watchdog/cdns_wdt.c +0 -1
index 743ab6487bcd..cb5a786c5891 100644
@@ -6,7 +6,6 @@
   * Author(s):	Shreenidhi Shedi <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <wdt.h>
drivers/watchdog/cortina_wdt.c +0 -1
index 7ab9d7b2db97..9f09ac0e15ff 100644
@@ -4,7 +4,6 @@
   *
   */
 
-#include <common.h>
  #include <dm.h>
  #include <hang.h>
  #include <asm/io.h>
drivers/watchdog/designware_wdt.c +0 -1
index b22e0ee06a4e..bd9d7105366b 100644
@@ -4,7 +4,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <reset.h>
  #include <wdt.h>
drivers/watchdog/ftwdt010_wdt.c +0 -1
index 1f5f301b1251..4769b967e527 100644
@@ -14,7 +14,6 @@
   * 22/08/2022 Port to DM
   */
 
-#include <common.h>
  #include <dm.h>
  #include <wdt.h>
  #include <log.h>
drivers/watchdog/imx_watchdog.c +0 -1
index 894158b304a7..ea770217e590 100644
@@ -4,7 +4,6 @@
   * Licensed under the GPL-2 or later.
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <dm.h>
  #include <hang.h>
drivers/watchdog/mcf_wdt.c +1 -1
index b36488bb5b96..5092a256af0c 100644
@@ -6,7 +6,7 @@
   *
   */
 
-#include <common.h>
+#include <config.h>
  #include <dm.h>
  #include <hang.h>
  #include <asm/io.h>
drivers/watchdog/mpc8xxx_wdt.c +0 -1
index f28636ca9015..036ff690d3fd 100644
@@ -3,7 +3,6 @@
   * Copyright 2017 CS Systemes d'Information
   */
 
-#include <common.h>
  #include <env.h>
  #include <dm.h>
  #include <wdt.h>
drivers/watchdog/mt7621_wdt.c +0 -1
index f7d201b921a1..6308d9632a81 100644
@@ -9,7 +9,6 @@
   *   Copyright (C) 2013 John Crispin <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <wdt.h>
  #include <asm/global_data.h>
drivers/watchdog/mtk_wdt.c +0 -1
index 368b36849c8d..706deb9da846 100644
@@ -6,7 +6,6 @@
   * Author: Ryder Lee <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <hang.h>
  #include <wdt.h>
drivers/watchdog/omap_wdt.c +0 -1
index f0e57b4f7286..5fd02ddf564f 100644
@@ -36,7 +36,6 @@
   *	Use the driver model and standard identifiers; handle bigger timeouts.
   */
 
-#include <common.h>
  #include <log.h>
  #include <watchdog.h>
  #include <asm/ti-common/omap_wdt.h>
drivers/watchdog/orion_wdt.c +0 -1
index 127766df58af..4562b2a37e34 100644
@@ -12,7 +12,6 @@
   * warranty of any kind, whether express or implied.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <clk.h>
  #include <log.h>
drivers/watchdog/rti_wdt.c +0 -1
index 8d93f19b984a..99168d0cad03 100644
@@ -8,7 +8,6 @@
   * Derived from linux/drivers/watchdog/rti_wdt.c
   */
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <dm/device_compat.h>
drivers/watchdog/s5p_wdt.c +0 -1
index 80524a00101b..c244f15a8952 100644
@@ -4,7 +4,6 @@
   * Minkyu Kang <[email protected]>
   */
 
-#include <common.h>
  #include <asm/io.h>
  #include <asm/arch/cpu.h>
  #include <asm/arch/watchdog.h>
drivers/watchdog/sandbox_alarm-wdt.c +0 -1
index 71bb5d924ea5..8dbbfc249e7c 100644
@@ -1,4 +1,3 @@
-#include <common.h>
  #include <dm.h>
  #include <os.h>
  #include <wdt.h>
drivers/watchdog/sandbox_wdt.c +0 -1
index 535614f04d63..cd5eadbfd213 100644
@@ -3,7 +3,6 @@
   * Copyright 2017 Google, Inc
   */
 
-#include <common.h>
  #include <dm.h>
  #include <wdt.h>
  #include <asm/state.h>
drivers/watchdog/sbsa_gwdt.c +0 -1
index 96d04665d52c..03585529bb63 100644
@@ -7,7 +7,6 @@
 
  #include <asm/global_data.h>
  #include <asm/io.h>
-#include <common.h>
  #include <dm/device.h>
  #include <dm/fdtaddr.h>
  #include <dm/read.h>
drivers/watchdog/sl28cpld-wdt.c +0 -1
index af5a6b1a28ac..c5b4f8a9f665 100644
@@ -5,7 +5,6 @@
   * Copyright (c) 2021 Michael Walle <[email protected]>
   */
 
-#include <common.h>
  #include <dm.h>
  #include <wdt.h>
  #include <sl28cpld.h>
drivers/watchdog/sp805_wdt.c +0 -1
index 6d58fd3cfdab..10fe3e282323 100644
@@ -8,7 +8,6 @@
  #include <log.h>
  #include <asm/global_data.h>
  #include <asm/io.h>
-#include <common.h>
  #include <clk.h>
  #include <dm/device.h>
  #include <dm/fdtaddr.h>
drivers/watchdog/stm32mp_wdt.c +0 -1
index 7ebcd2552668..97ab8cfe7ab1 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_WDT
 
-#include <common.h>
  #include <clk.h>
  #include <dm.h>
  #include <log.h>
drivers/watchdog/tangier_wdt.c +0 -1
index bdc65597dcff..8fbfac31b1e1 100644
@@ -2,7 +2,6 @@
  /*
   * Copyright (c) 2017 Intel Corporation
   */
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <wdt.h>
drivers/watchdog/ulp_wdog.c +0 -1
index 0eea04ed2c6e..83f19dc0e86b 100644
@@ -3,7 +3,6 @@
   * Copyright (C) 2016 Freescale Semiconductor, Inc.
   */
 
-#include <common.h>
  #include <cpu_func.h>
  #include <asm/io.h>
  #include <asm/arch/imx-regs.h>
drivers/watchdog/wdt-uclass.c +0 -1
index 417e8d7eef95..c88312ec7218 100644
@@ -5,7 +5,6 @@
 
  #define LOG_CATEGORY UCLASS_WDT
 
-#include <common.h>
  #include <cyclic.h>
  #include <div64.h>
  #include <dm.h>
drivers/watchdog/xilinx_tb_wdt.c +0 -1
index b38c40001611..8a8e55370a0e 100644
@@ -8,7 +8,6 @@
   * Copyright (c) 2011-2018 Xilinx Inc.
   */
 
-#include <common.h>
  #include <dm.h>
  #include <log.h>
  #include <wdt.h>
drivers/watchdog/xilinx_wwdt.c +0 -1
index 963ab22fb452..41eff1a46450 100644
@@ -9,7 +9,6 @@
   */
 
  #include <clk.h>
-#include <common.h>
  #include <dm.h>
  #include <regmap.h>
  #include <wdt.h>
author
#131 lore raw

PATCH 79/81 xen: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from this driver directory and when needed add missing include files directly.

---
Cc: Anastasiia Lukianenko <[email protected]>
Cc: Oleksandr Andrushchenko <[email protected]>
Cc: Tom Rini <[email protected]>

---
 drivers/xen/events.c     | 1 -
 drivers/xen/gnttab.c     | 1 -
 drivers/xen/hypervisor.c | 1 -
 drivers/xen/pvblock.c    | 1 -
 drivers/xen/xenbus.c     | 1 -
 include/xen/events.h     | 1 +
 6 files changed, 1 insertion(+), 5 deletions(-)
drivers/xen/events.c +0 -1
index 2ebe20dbf26e..fa8b13d2c61d 100644
@@ -14,7 +14,6 @@
  *
  * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
  */
-#include <common.h>
 #include <log.h>
 
 #include <asm/io.h>
drivers/xen/gnttab.c +0 -1
index 31e96e2939c0..005694a5c626 100644
@@ -14,7 +14,6 @@
  *
  * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
  */
-#include <common.h>
 #include <asm/global_data.h>
 #include <linux/compiler.h>
 #include <log.h>
drivers/xen/hypervisor.c +0 -1
index 0b2311ba2675..d28df823c684 100644
@@ -8,7 +8,6 @@
  * Copyright (c) 2005, Grzegorz Milos, [email protected],Intel Research Cambridge
  * Copyright (c) 2020, EPAM Systems Inc.
  */
-#include <common.h>
 #include <cpu_func.h>
 #include <log.h>
 #include <memalign.h>
drivers/xen/pvblock.c +0 -1
index 9fc51d203e5e..0e47ffb46a82 100644
@@ -7,7 +7,6 @@
 #define LOG_CATEGORY UCLASS_PVBLOCK
 
 #include <blk.h>
-#include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
 #include <malloc.h>
drivers/xen/xenbus.c +0 -1
index 177d144723c1..36de52550997 100644
@@ -15,7 +15,6 @@
  * [1] - http://xenbits.xen.org/gitweb/?p=mini-os.git;a=summary
  */
 
-#include <common.h>
 #include <log.h>
 
 #include <asm/armv8/mmu.h>
include/xen/events.h +1 -0
index 82bd18b48c88..f0a8ef32d00b 100644
@@ -15,6 +15,7 @@
 #ifndef _EVENTS_H_
 #define _EVENTS_H_
 
+#include <asm/ptrace.h>
 #include <asm/xen/hypercall.h>
 #include <xen/interface/event_channel.h>
 
Signature · 1 line
2.34.1
author
#132 lore raw

PATCH 80/81 api: Remove <common.h> and add needed includes

In reply to Tom Rini

Remove <common.h> from here and when needed add missing include files directly.

---
 api/api.c                           | 4 +++-
 api/api_display.c                   | 2 +-
 api/api_net.c                       | 1 -
 api/api_storage.c                   | 2 +-
 examples/api/demo.c                 | 2 +-
 examples/api/glue.c                 | 1 -
 examples/api/libgenwrap.c           | 1 -
 examples/standalone/atmel_df_pow2.c | 1 -
 examples/standalone/sched.c         | 1 -
 examples/standalone/stubs.c         | 1 -
 include/api_public.h                | 2 ++
 11 files changed, 8 insertions(+), 10 deletions(-)
api/api.c +3 -1
index 89003c161c2f..d22132f62fe3 100644
@@ -7,11 +7,13 @@
 
 #include <config.h>
 #include <command.h>
-#include <common.h>
 #include <env.h>
 #include <malloc.h>
+#include <time.h>
 #include <env_internal.h>
+#include <vsprintf.h>
 #include <linux/delay.h>
+#include <linux/errno.h>
 #include <linux/types.h>
 #include <api_public.h>
 #include <u-boot/crc.h>
api/api_display.c +1 -1
index 2e877a85d147..8fd078c8c4aa 100644
@@ -3,9 +3,9 @@
  * Copyright (c) 2011 The Chromium OS Authors.
  */
 
-#include <common.h>
 #include <api_public.h>
 #include <log.h>
+#include <linux/types.h>
 
 /* TODO(clchiou): add support of video device */
 
api/api_net.c +0 -1
index 7515c26e8b44..264ff530563b 100644
@@ -6,7 +6,6 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <net.h>
 #include <linux/types.h>
 #include <api_public.h>
api/api_storage.c +1 -1
index 78becbe39fb6..3d2d9d6ef4c1 100644
@@ -6,10 +6,10 @@
  */
 
 #include <config.h>
-#include <common.h>
 #include <api_public.h>
 #include <part.h>
 #include <scsi.h>
+#include <linux/types.h>
 
 #if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
 #include <usb.h>
examples/api/demo.c +1 -1
index d586174ce8c9..677d13b307a1 100644
@@ -5,7 +5,7 @@
  * Written by: Rafal Jaworowski <[email protected]>
  */
 
-#include <common.h>
+#include <stdio.h>
 #include <env.h>
 #include <linux/types.h>
 #include <api_public.h>
examples/api/glue.c +0 -1
index 075d307ae261..08c21a8cb9c1 100644
@@ -3,7 +3,6 @@
  * (C) Copyright 2007-2008 Semihalf, Rafal Jaworowski <[email protected]>
  */
 
-#include <common.h>
 #include <env.h>
 #include <linux/types.h>
 #include <api_public.h>
examples/api/libgenwrap.c +0 -1
index 3aa222866ff5..bfd88e100d6e 100644
@@ -9,7 +9,6 @@
  * existing code e.g. operations on strings and similar.
  */
 
-#include <common.h>
 #include <command.h>
 #include <hang.h>
 #include <linux/delay.h>
examples/standalone/atmel_df_pow2.c +0 -1
index dcb25da94986..ed0d7aeaadca 100644
@@ -6,7 +6,6 @@
  * Licensed under the 2-clause BSD.
  */
 
-#include <common.h>
 #include <exports.h>
 #include <spi.h>
 #include <linux/delay.h>
examples/standalone/sched.c +0 -1
index 1c5296071322..d507163f6f34 100644
@@ -1,6 +1,5 @@
 // SPDX-License-Identifier: GPL-2.0+
 
-#include <common.h>
 #include <exports.h>
 
 /*
examples/standalone/stubs.c +0 -1
index 65115570e8eb..04e8acb8abe9 100644
@@ -1,4 +1,3 @@
-#include <common.h>
 #include <exports.h>
 #include <linux/compiler.h>
 
include/api_public.h +2 -0
index 5a4465ea893d..e89572c00a4b 100644
@@ -8,6 +8,8 @@
 #ifndef _API_PUBLIC_H_
 #define _API_PUBLIC_H_
 
+#include <linux/types.h>
+
 #define API_EINVAL		1	/* invalid argument(s)	*/
 #define API_ENODEV		2	/* no device		*/
 #define API_ENOMEM		3	/* no memory		*/
Signature · 1 line
2.34.1
author
#133 lore raw

PATCH 81/81 common.h: Remove this file and all references

In reply to Tom Rini

With all files that had included this file directly having been updated, we can now remove this file.

---
 doc/develop/codingstyle.rst           |  8 ++-----
 doc/develop/tests_writing.rst         |  1 -
 include/common.h                      | 33 ---------------------------
 scripts/Makefile.autoconf             |  4 ++--
 scripts/gen_ll_addressable_symbols.sh |  2 +-
 tools/dtoc/dtb_platdata.py            |  3 ---
 tools/dtoc/test_dtoc.py               |  3 ---
 7 files changed, 5 insertions(+), 49 deletions(-)
 delete mode 100644 include/common.h
doc/develop/codingstyle.rst +2 -6
index f6248cdcb1e1..fa3cd6aec82e 100644
@@ -110,9 +110,8 @@ Include files
 
 You should follow this ordering in U-Boot. In all cases, they should be listed
 in alphabetical order. First comes headers which are located directly in our
-top-level include diretory. This excludes the common.h header file which is to
-be removed. Second are headers within subdirectories, Finally directory-local
-includes should be listed. See this example:
+top-level include diretory. Second are headers within subdirectories, Finally
+directory-local includes should be listed. See this example:
 
 .. code-block:: C
 
@@ -129,9 +128,6 @@ For files that need to be compiled for the host (e.g. tools), you need to use
 ``#ifndef USE_HOSTCC`` to avoid including U-Boot specific include files. See
 common/image.c for an example.
 
-If you encounter code which still uses <common.h> a patch to remove that and
-replace it with any required include files directly is much appreciated.
-
 If your file uses driver model, include <dm.h> in the C file. Do not include
 dm.h in a header file. Try to use forward declarations (e.g. ``struct
 udevice``) instead.
doc/develop/tests_writing.rst +0 -1
index bb1145da268b..44b544fa78b4 100644
@@ -281,7 +281,6 @@ new one of those, you should add a new suite.
 Create a new file in test/ or a subdirectory and define a macro to register the
 suite. For example::
 
-   #include <common.h>
    #include <console.h>
    #include <mapmem.h>
    #include <dm/test.h>
include/common.h deleted +0 -33
deleted file mode 100644
index a79c2bb49931..000000000000
@@ -1,33 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0+ */
-/*
- * Common header file for U-Boot
- *
- * This file still includes quite a few headers that should be included
- * individually as needed. Patches to remove things are welcome.
- *
- * (C) Copyright 2000-2009
- * Wolfgang Denk, DENX Software Engineering, [email protected].
- */
-
-#ifndef __COMMON_H_
-#define __COMMON_H_	1
-
-#ifndef __ASSEMBLY__		/* put C only stuff in this section */
-#include <config.h>
-#include <errno.h>
-#include <time.h>
-#include <linux/types.h>
-#include <linux/string.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <linux/kernel.h>
-#include <asm/u-boot.h> /* boot information for Linux kernel */
-#include <vsprintf.h>
-#endif	/* __ASSEMBLY__ */
-
-/* Pull in stuff for the build system */
-#ifdef DO_DEPS_ONLY
-# include <env_internal.h>
-#endif
-
-#endif	/* __COMMON_H_ */
scripts/Makefile.autoconf +2 -2
index 8208ffe22744..b42f9b525fea 100644
@@ -45,7 +45,7 @@ c_flags := $(KBUILD_CFLAGS) $(KBUILD_CPPFLAGS) $(PLATFORM_CPPFLAGS) \
 
 quiet_cmd_autoconf_dep = GEN     $@
       cmd_autoconf_dep = $(CC) -x c -DDO_DEPS_ONLY -M -MP $(c_flags) \
-	-MQ include/config/auto.conf $(srctree)/include/common.h > $@ || {	\
+	-MQ include/config/auto.conf include/config.h > $@ || {	\
 		rm $@; false;							\
 	}
 include/autoconf.mk.dep: include/config.h FORCE
@@ -70,7 +70,7 @@ quiet_cmd_autoconf = GEN     $@
 
 quiet_cmd_u_boot_cfg = CFG     $@
       cmd_u_boot_cfg = \
-	$(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM $(srctree)/include/common.h > [email protected] && { \
+	$(CPP) $(c_flags) $2 -DDO_DEPS_ONLY -dM include/config.h > [email protected] && { \
 		grep 'define CONFIG_' [email protected] | \
 			sed '/define CONFIG_IS_ENABLED(/d;/define CONFIG_IF_ENABLED_INT(/d;/define CONFIG_VAL(/d;' > $@; \
 		rm [email protected];						\
scripts/gen_ll_addressable_symbols.sh +1 -1
index d0864804aafb..13f670ae0ef0 100755
@@ -10,6 +10,6 @@
 
 set -e
 
-echo '#include <common.h>'
+echo '#include <linux/compiler.h>'
 $@ 2>/dev/null | grep -oe '_u_boot_list_2_[a-zA-Z0-9_]*_2_[a-zA-Z0-9_]*' | \
 	sort -u | sed -e 's/^\(.*\)/extern char \1[];\n__ADDRESSABLE(\1);/'
tools/dtoc/dtb_platdata.py +0 -3
index 39f416cfd806..89066e6403fc 100644
@@ -835,7 +835,6 @@ class DtbPlatdata():
 
     def generate_uclasses(self):
         self.out('\n')
-        self.out('#include <common.h>\n')
         self.out('#include <dm.h>\n')
         self.out('#include <dt-structs.h>\n')
         self.out('\n')
@@ -1059,7 +1058,6 @@ class DtbPlatdata():
         self.out('/* Allow use of U_BOOT_DRVINFO() in this file */\n')
         self.out('#define DT_PLAT_C\n')
         self.out('\n')
-        self.out('#include <common.h>\n')
         self.out('#include <dm.h>\n')
         self.out('#include <dt-structs.h>\n')
         self.out('\n')
@@ -1092,7 +1090,6 @@ class DtbPlatdata():
         See the documentation in doc/driver-model/of-plat.rst for more
         information.
         """
-        self.out('#include <common.h>\n')
         self.out('#include <dm.h>\n')
         self.out('#include <dt-structs.h>\n')
         self.out('\n')
tools/dtoc/test_dtoc.py +0 -3
index 597c93e8a870..c4a0889aebe7 100755
@@ -63,7 +63,6 @@ C_HEADER = C_HEADER_PRE + '''
 /* Allow use of U_BOOT_DRVINFO() in this file */
 #define DT_PLAT_C
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 '''
@@ -417,7 +416,6 @@ U_BOOT_DRVINFO(spl_test3) = {
 '''
     uclass_text_inst = '''
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 
@@ -521,7 +519,6 @@ DM_UCLASS_INST(testfdt) = {
  * This was generated by dtoc from a .dtb (device tree binary) file.
  */
 
-#include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
 
Signature · 1 line
2.34.1
Reviewed-by on v1 1/81
#134 lore raw
In reply to Tom Rini
Quoted 10 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Thursday, May 2, 2024 10:30 AM
To: [email protected]
Cc: Weijie Gao <[email protected]>; GSS_MTK_Uboot_upstream <[email protected]>; Peng Fan <[email protected]>; Jaehoon Chung <[email protected]>
Subject: [PATCH 01/81] mmc: Migrate MMC_SUPPORTS_TUNING to Kconfig

Quoted 7 lines

The constraints on the MMC_SUPPORTS_TUNING symbol can easily be expressed in Kconfig (with the addition of SPL_MMC_SUPPORTS_TUNING). Furthermore, in order to remove <common.h> from the MMC subsystem, the way this symbol is used today needs to be changed in order to continue functioning.

Best Regards,
Jaehoon Chung

Quoted 471 lines

---
Cc: Weijie Gao <[email protected]>
Cc: GSS_MTK_Uboot_upstream <[email protected]>
Cc: Peng Fan <[email protected]>
Cc: Jaehoon Chung <[email protected]>

---
 arch/arm/mach-mediatek/Kconfig     |  1 +
 arch/mips/mach-mtmips/Kconfig      |  1 +
 drivers/mmc/Kconfig                | 11 +++++++++++
 drivers/mmc/am654_sdhci.c          |  6 +++---
 drivers/mmc/fsl_esdhc.c            |  4 ++--
 drivers/mmc/fsl_esdhc_imx.c        |  8 ++++----
 drivers/mmc/mmc-uclass.c           |  2 +-
 drivers/mmc/mmc.c                  | 12 ++++++------
 drivers/mmc/mtk-sd.c               |  4 ++--
 drivers/mmc/octeontx_hsmmc.c       | 12 ++++++------
 drivers/mmc/omap_hsmmc.c           |  4 ++--
 drivers/mmc/sdhci-cadence.c        |  2 +-
 drivers/mmc/sdhci.c                |  4 ++--
 include/configs/mt7621.h           |  3 ---
 include/configs/mt7623.h           |  3 ---
 include/configs/octeontx2_common.h |  5 -----
 include/mmc.h                      |  9 +--------
 17 files changed, 43 insertions(+), 48 deletions(-)
arch/arm/mach-mediatek/Kconfig +1 -0
index 82018bd9d3e3..ff1fdee5c8da 100644
@@ -23,6 +23,7 @@ config TARGET_MT7622
 config TARGET_MT7623
 	bool "MediaTek MT7623 SoC"
 	select CPU_V7A
+	select MMC_SUPPORTS_TUNING
 	help
 	  The MediaTek MT7623 is a ARM-based SoC with a quad-core Cortex-A7
 	  including NEON and GPU, Mali-450 graphics, several DDR3 options,
arch/mips/mach-mtmips/Kconfig +1 -0
index 15b2792e619b..3fcd0b8465b4 100644
@@ -80,6 +80,7 @@ config SOC_MT7621
 	bool "MT7621"
 	select MIPS_CM
 	select MIPS_L2_CACHE
+	select MMC_SUPPORTS_TUNING
 	select SYS_CACHE_SHIFT_5
 	select SYS_MIPS_CACHE_INIT_RAM_LOAD
 	select PINCTRL_MT7621
drivers/mmc/Kconfig +11 -0
index 549634891a36..d0944793c92d 100644
@@ -147,9 +147,16 @@ config SPL_MMC_IO_VOLTAGE
 	  support. For eMMC this not mandatory, but not enabling this option may
 	  prevent the driver of using the faster modes.
 
+config MMC_SUPPORTS_TUNING
+	bool
+
+config SPL_MMC_SUPPORTS_TUNING
+	bool
+
 config MMC_UHS_SUPPORT
 	bool "enable UHS support"
 	depends on MMC_IO_VOLTAGE
+	select MMC_SUPPORTS_TUNING
 	help
 	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
 	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
@@ -158,6 +165,7 @@ config MMC_UHS_SUPPORT
 config SPL_MMC_UHS_SUPPORT
 	bool "enable UHS support in SPL"
 	depends on SPL_MMC_IO_VOLTAGE
+	select SPL_MMC_SUPPORTS_TUNING
 	help
 	  The Ultra High Speed (UHS) bus is available on some SDHC and SDXC
 	  cards. The IO voltage must be switchable from 3.3v to 1.8v. The bus
@@ -193,6 +201,7 @@ config SPL_MMC_HS400_SUPPORT
 
 config MMC_HS200_SUPPORT
 	bool "enable HS200 support"
+	select MMC_SUPPORTS_TUNING
 	help
 	  The HS200 mode is support by some eMMC. The bus frequency is up to
 	  200MHz. This mode requires tuning the IO.
@@ -200,6 +209,7 @@ config MMC_HS200_SUPPORT
 config SPL_MMC_HS200_SUPPORT
 	bool "enable HS200 support in SPL"
 	depends on SPL_MMC
+	select SPL_MMC_SUPPORTS_TUNING
 	help
 	  The HS200 mode is support by some eMMC. The bus frequency is up to
 	  200MHz. This mode requires tuning the IO.
@@ -347,6 +357,7 @@ config MMC_OCTEONTX
 	bool "Marvell Octeon Multimedia Card Interface support"
 	depends on (ARCH_OCTEON || ARCH_OCTEONTX || ARCH_OCTEONTX2)
 	depends on DM_MMC
+	select MMC_SUPPORTS_TUNING if ARCH_OCTEONTX2
 	help
 	  This selects the Octeon Multimedia card Interface.
 	  If you have an OcteonTX/TX2 or MIPS Octeon board with a
drivers/mmc/am654_sdhci.c +3 -3
index fadab7d40bb7..ffb461c2f6c1 100644
@@ -397,7 +397,7 @@ static void am654_sdhci_write_b(struct sdhci_host *host, u8 val, int reg)
 
 	writeb(val, host->ioaddr + reg);
 }
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 #define ITAPDLY_LENGTH 32
 #define ITAPDLY_LAST_INDEX (ITAPDLY_LENGTH - 1)
 
@@ -500,7 +500,7 @@ static int am654_sdhci_execute_tuning(struct mmc *mmc, u8 opcode)
 }
 #endif
 const struct sdhci_ops am654_sdhci_ops = {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.platform_execute_tuning = am654_sdhci_execute_tuning,
 #endif
 	.deferred_probe		= am654_sdhci_deferred_probe,
@@ -560,7 +560,7 @@ static int j721e_4bit_sdhci_set_ios_post(struct sdhci_host *host)
 }
 
 const struct sdhci_ops j721e_4bit_sdhci_ops = {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.platform_execute_tuning = am654_sdhci_execute_tuning,
 #endif
 	.deferred_probe		= am654_sdhci_deferred_probe,
drivers/mmc/fsl_esdhc.c +2 -2
index 595d88bd5625..5ac1c6a0e9e1 100644
@@ -1102,7 +1102,7 @@ static int fsl_esdhc_reinit(struct udevice *dev)
 	return esdhc_init_common(priv, &plat->mmc);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int fsl_esdhc_execute_tuning(struct udevice *dev, uint32_t opcode)
 {
 	struct fsl_esdhc_plat *plat = dev_get_plat(dev);
@@ -1175,7 +1175,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
 	.get_cd		= fsl_esdhc_get_cd,
 	.send_cmd	= fsl_esdhc_send_cmd,
 	.set_ios	= fsl_esdhc_set_ios,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = fsl_esdhc_execute_tuning,
 #endif
 	.reinit = fsl_esdhc_reinit,
drivers/mmc/fsl_esdhc_imx.c +4 -4
index b74c01400205..8b2ef9391f3e 100644
@@ -635,7 +635,7 @@ static void set_sysctl(struct fsl_esdhc_priv *priv, struct mmc *mmc, uint clock)
 	priv->clock = clock;
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int esdhc_change_pinstate(struct udevice *dev)
 {
 	struct fsl_esdhc_priv *priv = dev_get_priv(dev);
@@ -913,7 +913,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc)
 	int ret __maybe_unused;
 	u32 clock;
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/*
 	 * call esdhc_set_timing() before update the clock rate,
 	 * This is because current we support DDR and SDR mode,
@@ -951,7 +951,7 @@ static int esdhc_set_ios_common(struct fsl_esdhc_priv *priv, struct mmc *mmc)
 			esdhc_setbits32(&regs->sysctl, SYSCTL_PEREN | SYSCTL_CKEN);
 	}
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/*
 	 * For HS400/HS400ES mode, make sure set the strobe dll in the
 	 * target clock rate. So call esdhc_set_strobe_dll() after the
@@ -1618,7 +1618,7 @@ static const struct dm_mmc_ops fsl_esdhc_ops = {
 	.get_cd		= fsl_esdhc_get_cd,
 	.send_cmd	= fsl_esdhc_send_cmd,
 	.set_ios	= fsl_esdhc_set_ios,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning	= fsl_esdhc_execute_tuning,
 #endif
 #if CONFIG_IS_ENABLED(MMC_HS400_ES_SUPPORT)
drivers/mmc/mmc-uclass.c +1 -1
index 24170c59ecc1..0685b86af464 100644
@@ -112,7 +112,7 @@ int mmc_getcd(struct mmc *mmc)
 	return dm_mmc_get_cd(mmc->dev);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int dm_mmc_execute_tuning(struct udevice *dev, uint opcode)
 {
 	struct dm_mmc_ops *ops = mmc_get_ops(dev);
drivers/mmc/mmc.c +6 -6
index 7b068c71ff37..4543d94c7205 100644
@@ -329,7 +329,7 @@ int mmc_set_blocklen(struct mmc *mmc, int len)
 				   MMC_QUIRK_RETRY_SET_BLOCKLEN, 4);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static const u8 tuning_blk_pattern_4bit[] = {
 	0xff, 0x0f, 0xff, 0x00, 0xff, 0xcc, 0xc3, 0xcc,
 	0xc3, 0x3c, 0xcc, 0xff, 0xfe, 0xff, 0xfe, 0xef,
@@ -1621,7 +1621,7 @@ static inline int bus_width(uint cap)
 }
 
 #if !CONFIG_IS_ENABLED(DM_MMC)
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int mmc_execute_tuning(struct mmc *mmc, uint opcode)
 {
 	return -ENOTSUPP;
@@ -1702,7 +1702,7 @@ void mmc_dump_capabilities(const char *text, uint caps)
 struct mode_width_tuning {
 	enum bus_mode mode;
 	uint widths;
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	uint tuning;
 #endif
 };
@@ -1743,7 +1743,7 @@ static inline int mmc_set_signal_voltage(struct mmc *mmc, uint signal_voltage)
 #if !CONFIG_IS_ENABLED(MMC_TINY)
 static const struct mode_width_tuning sd_modes_by_pref[] = {
 #if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	{
 		.mode = UHS_SDR104,
 		.widths = MMC_MODE_4BIT | MMC_MODE_1BIT,
@@ -1846,7 +1846,7 @@ static int sd_select_mode_and_width(struct mmc *mmc, uint card_caps)
 				mmc_set_clock(mmc, mmc->tran_speed,
 						MMC_CLK_ENABLE);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 				/* execute tuning if needed */
 				if (mwt->tuning && !mmc_host_is_spi(mmc)) {
 					err = mmc_execute_tuning(mmc,
@@ -2224,7 +2224,7 @@ static int mmc_select_mode_and_width(struct mmc *mmc, uint card_caps)
 				mmc_select_mode(mmc, mwt->mode);
 				mmc_set_clock(mmc, mmc->tran_speed,
 					      MMC_CLK_ENABLE);
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 
 				/* execute tuning if needed */
 				if (mwt->tuning) {
drivers/mmc/mtk-sd.c +2 -2
index 296aaee73318..4bd66ecf93ad 100644
@@ -1011,7 +1011,7 @@ static int msdc_ops_get_wp(struct udevice *dev)
 #endif
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static u32 test_delay_bit(u32 delay, u32 bit)
 {
 	bit %= PAD_DELAY_MAX;
@@ -1760,7 +1760,7 @@ static const struct dm_mmc_ops msdc_ops = {
 	.set_ios = msdc_ops_set_ios,
 	.get_cd = msdc_ops_get_cd,
 	.get_wp = msdc_ops_get_wp,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = msdc_execute_tuning,
 #endif
 	.wait_dat0 = msdc_ops_wait_dat0,
drivers/mmc/octeontx_hsmmc.c +6 -6
index 7f9c4f4d36d4..3b5e12217325 100644
@@ -794,7 +794,7 @@ octeontx_mmc_get_cr_mods(struct mmc *mmc, const struct mmc_cmd *cmd,
 	u8 desired_ctype = 0;
 
 	if (IS_MMC(mmc)) {
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 		if (cmd->cmdidx == MMC_CMD_SEND_TUNING_BLOCK_HS200) {
 			if (cmd->resp_type == MMC_RSP_R1)
 				cr.rtype_xor = 1;
@@ -1631,7 +1631,7 @@ static int octeontx_mmc_dev_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
 	return octeontx_mmc_send_cmd(dev_to_mmc(dev), cmd, data);
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int octeontx_mmc_test_cmd(struct mmc *mmc, u32 opcode, int *statp)
 {
 	struct mmc_cmd cmd;
@@ -2421,12 +2421,12 @@ static int octeontx_mmc_execute_tuning(struct udevice *dev, u32 opcode)
 
 	return 0;
 }
-#else /* MMC_SUPPORTS_TUNING */
+#else /* CONFIG_MMC_SUPPORTS_TUNING */
 static void octeontx_mmc_set_emm_timing(struct mmc *mmc,
 					union mio_emm_timing emm_timing)
 {
 }
-#endif /* MMC_SUPPORTS_TUNING */
+#endif /* CONFIG_MMC_SUPPORTS_TUNING */
 
 /**
  * Calculate the clock period with rounding up
@@ -2573,7 +2573,7 @@ static int octeontx_mmc_set_ios(struct udevice *dev)
 
 	err = octeontx_mmc_configure_delay(mmc);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	if (!err && mmc->selected_mode == MMC_HS_400 && !slot->hs400_tuned) {
 		debug("%s: Tuning HS400 mode\n", __func__);
 		err = octeontx_tune_hs400(mmc);
@@ -3776,7 +3776,7 @@ static const struct dm_mmc_ops octeontx_hsmmc_ops = {
 	.set_ios = octeontx_mmc_set_ios,
 	.get_cd = octeontx_mmc_get_cd,
 	.get_wp = octeontx_mmc_get_wp,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = octeontx_mmc_execute_tuning,
 #endif
 };
drivers/mmc/omap_hsmmc.c +2 -2
index 99f21b2c546a..118d9cd16fdb 100644
@@ -577,7 +577,7 @@ static uint32_t omap_hsmmc_set_capabilities(struct mmc *mmc)
 	return val;
 }
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static void omap_hsmmc_disable_tuning(struct mmc *mmc)
 {
 	struct hsmmc *mmc_base;
@@ -1518,7 +1518,7 @@ static const struct dm_mmc_ops omap_hsmmc_ops = {
 	.get_cd		= omap_hsmmc_getcd,
 	.get_wp		= omap_hsmmc_getwp,
 #endif
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning = omap_hsmmc_execute_tuning,
 #endif
 	.wait_dat0	= omap_hsmmc_wait_dat0,
drivers/mmc/sdhci-cadence.c +1 -1
index c0a9f60b1496..0570dbca00d7 100644
@@ -274,7 +274,7 @@ static int sdhci_cdns_probe(struct udevice *dev)
 	host->ops = &sdhci_cdns_ops;
 	host->quirks |= SDHCI_QUIRK_WAIT_SEND_CMD;
 	sdhci_cdns_mmc_ops = sdhci_ops;
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	sdhci_cdns_mmc_ops.execute_tuning = sdhci_cdns_execute_tuning;
 #endif
 
drivers/mmc/sdhci.c +2 -2
index af654ea8d13c..d06f2c02bb7b 100644
@@ -351,7 +351,7 @@ static int sdhci_send_command(struct mmc *mmc, struct mmc_cmd *cmd,
 		return -ECOMM;
 }
 
-#if defined(CONFIG_DM_MMC) && defined(MMC_SUPPORTS_TUNING)
+#if defined(CONFIG_DM_MMC) && CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 static int sdhci_execute_tuning(struct udevice *dev, uint opcode)
 {
 	int err;
@@ -848,7 +848,7 @@ const struct dm_mmc_ops sdhci_ops = {
 	.set_ios	= sdhci_set_ios,
 	.get_cd		= sdhci_get_cd,
 	.deferred_probe	= sdhci_deferred_probe,
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	.execute_tuning	= sdhci_execute_tuning,
 #endif
 	.wait_dat0	= sdhci_wait_dat0,
include/configs/mt7621.h +0 -3
index bf2bc2d45c09..e6dba7071950 100644
@@ -14,9 +14,6 @@
 
 #define CFG_SYS_INIT_SP_OFFSET		0x800000
 
-/* MMC */
-#define MMC_SUPPORTS_TUNING
-
 /* Serial SPL */
 #if defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_SERIAL)
 #define CFG_SYS_NS16550_CLK		50000000
include/configs/mt7623.h +0 -3
index fca234a1dc71..6f42cd32d80f 100644
@@ -11,9 +11,6 @@
 
 #include <linux/sizes.h>
 
-/* MMC */
-#define MMC_SUPPORTS_TUNING
-
 /* DRAM */
 #define CFG_SYS_SDRAM_BASE		0x80000000
 
include/configs/octeontx2_common.h +0 -5
index c4db38562d83..f415dffddbea 100644
@@ -19,9 +19,4 @@
 					"loadaddr=20080000\0"	\
 					"ethrotate=yes\0"
 
-#if defined(CONFIG_MMC_OCTEONTX)
-#define MMC_SUPPORTS_TUNING
-/** EMMC specific defines */
-#endif
-
 #endif /* __OCTEONTX2_COMMON_H__ */
include/mmc.h +1 -9
index 4b8327f1f93b..7f1900363b91 100644
@@ -18,13 +18,6 @@
 
 struct bd_info;
 
-#if CONFIG_IS_ENABLED(MMC_HS200_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-#if CONFIG_IS_ENABLED(MMC_UHS_SUPPORT)
-#define MMC_SUPPORTS_TUNING
-#endif
-
 /* SD/MMC version bits; 8 flags, 8 major, 8 minor, 8 change */
 #define SD_VERSION_SD	(1U << 31)
 #define MMC_VERSION_MMC	(1U << 30)
@@ -485,7 +478,7 @@ struct dm_mmc_ops {
 	 */
 	int (*get_wp)(struct udevice *dev);
 
-#ifdef MMC_SUPPORTS_TUNING
+#if CONFIG_IS_ENABLED(MMC_SUPPORTS_TUNING)
 	/**
 	 * execute_tuning() - Start the tuning process
 	 *
--

2.34.1

author
#135 lore raw
In reply to Tom Rini
Quoted 8 lines · Tom Rini

The constraints on the MMC_SUPPORTS_TUNING symbol can easily be expressed in Kconfig (with the addition of SPL_MMC_SUPPORTS_TUNING). Furthermore, in order to remove <common.h> from the MMC subsystem, the way this symbol is used today needs to be changed in order to continue functioning.

[...]

Applied to u-boot/next, thanks!

Signature · 1 line
Tom