usb: Remove <common.h> and add needed includes

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

Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
Tom Rini 2024-05-01 19:31:30 -06:00
parent 5771d4eed6
commit 12a8b0dcae
118 changed files with 3 additions and 118 deletions

View File

@ -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>

View File

@ -11,7 +11,6 @@
* Roger Quadros <rogerq@ti.com>
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device-internal.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
* Author: Tor Krill tor@excito.com
*/
#include <common.h>
#include <log.h>
#include <usb.h>
#include <asm/io.h>

View File

@ -5,7 +5,6 @@
* Copyright 2013 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <hwconfig.h>
#include <fsl_errata.h>
#include<fsl_usb.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
* Based on dwc3-omap.c.
*/
#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <dm.h>

View File

@ -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>

View File

@ -6,7 +6,6 @@
* Author: Neil Armstrong <narmstrong@baylibre.com>
*/
#include <common.h>
#include <log.h>
#include <dm.h>
#include <dm/device-internal.h>

View File

@ -7,7 +7,6 @@
*/
#define DEBUG
#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/lists.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -7,7 +7,7 @@
* Author: Joonyoung Shim <jy0922.shim@samsung.com>
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch/power.h>
#include <asm/arch/xhci-exynos.h>
#include <linux/delay.h>

View File

@ -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>

View File

@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB
#include <common.h>
#include <dm.h>
#include <log.h>
#include <malloc.h>

View File

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>

View File

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <os.h>

View File

@ -6,7 +6,6 @@
#define LOG_CATEGORY UCLASS_USB_EMUL
#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>

View File

@ -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>

View File

@ -5,7 +5,6 @@
* from the Linux AX88179_178a driver
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>

View File

@ -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>

View File

@ -4,7 +4,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>

View File

@ -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>

View File

@ -6,7 +6,6 @@
* Copyright (C) 2007-2008 SMSC (Steve Glendinning)
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2011 The Chromium OS Authors.
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <log.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
* Bo Shen <voice.shen@atmel.com>
*/
#include <common.h>
#include <linux/bitops.h>
#include <linux/errno.h>
#include <asm/gpio.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
* Murray.Jensen@cmst.csiro.au, 27-Jan-01.
*/
#include <common.h>
#include <command.h>
#include <config.h>
#include <cpu_func.h>

View File

@ -8,7 +8,6 @@
* Remy Bohmer <linux@bohmer.net>
*/
#include <common.h>
#include <asm/unaligned.h>
#include <linux/errno.h>
#include <linux/list.h>

View File

@ -17,7 +17,6 @@
* Lukasz Majewski <l.majewski@samsumg.com>
*/
#undef DEBUG
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <generic-phy.h>

View File

@ -17,7 +17,6 @@
* Lukasz Majewski <l.majewski@samsumg.com>
*/
#include <common.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/list.h>

View File

@ -17,7 +17,6 @@
* Lukasz Majewski <l.majewski@samsumg.com>
*/
#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <linux/bug.h>

View File

@ -36,7 +36,6 @@
* XXX
*/
#include <common.h>
#include <serial.h>
#include <usbdevice.h>

View File

@ -8,7 +8,6 @@
* Remy Bohmer <linux@bohmer.net>
*/
#include <common.h>
#include <linux/usb/ch9.h>
#include <linux/errno.h>
#include <linux/usb/gadget.h>

View File

@ -7,7 +7,6 @@
* Copyright (C) 2008 Nokia Corporation
*/
#include <common.h>
#include <console.h>
#include <env.h>
#include <log.h>

View File

@ -10,7 +10,6 @@
*/
#include <circbuf.h>
#include <common.h>
#include <console.h>
#include <errno.h>
#include <g_dnl.h>

View File

@ -16,7 +16,6 @@
#include <env.h>
#include <errno.h>
#include <common.h>
#include <log.h>
#include <malloc.h>

View File

@ -11,7 +11,6 @@
*/
#include <command.h>
#include <config.h>
#include <common.h>
#include <env.h>
#include <errno.h>
#include <fastboot.h>

View File

@ -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>

View File

@ -6,7 +6,6 @@
*/
#include <command.h>
#include <config.h>
#include <common.h>
#include <env.h>
#include <errno.h>
#include <log.h>

View File

@ -17,7 +17,6 @@
*/
#include <errno.h>
#include <common.h>
#include <console.h>
#include <env.h>
#include <log.h>

View File

@ -15,7 +15,6 @@
*/
#include <command.h>
#include <common.h>
#include <console.h>
#include <dm.h>
#include <errno.h>

View File

@ -6,7 +6,6 @@
* Lukasz Majewski <l.majewski@samsung.com>
*/
#include <common.h>
#include <log.h>
#include <malloc.h>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -6,7 +6,6 @@
* Remy Bohmer <linux@bohmer.net>
*/
#include <common.h>
#include <linux/errno.h>
#include <linux/usb/ch9.h>
#include <linux/usb/gadget.h>

View File

@ -4,7 +4,6 @@
* Copyright (C) 2014 Marek Vasut <marex@denx.de>
*/
#include <common.h>
#include <clk.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -10,7 +10,6 @@
* Author: Neil Armstrong <narmstron@baylibre.com>
*/
#include <common.h>
#include <dm.h>
#include <reset.h>
#include <clk.h>

View File

@ -6,7 +6,6 @@
* Author(s): Patrice Chotard, <patrice.chotard@foss.st.com> for STMicroelectronics.
*/
#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>

View File

@ -5,7 +5,6 @@
* Written-by: Bo Shen <voice.shen@atmel.com>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>

View File

@ -6,7 +6,6 @@
* Vivek Gautam <gautam.vivek@samsung.com>
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>

View File

@ -7,7 +7,6 @@
* Author: Tor Krill tor@excito.com
*/
#include <common.h>
#include <env.h>
#include <log.h>
#include <pci.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2015 Alexey Brodkin <abrodkin@synopsys.com>
*/
#include <common.h>
#include <clk.h>
#include <log.h>
#include <dm/device_compat.h>

View File

@ -6,7 +6,6 @@
*
* All rights reserved.
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <errno.h>

View File

@ -5,7 +5,6 @@
* Written-by: Prafulla Wadaskar <prafulla@marvell.com>
*/
#include <common.h>
#include <log.h>
#include <asm/global_data.h>
#include <asm/io.h>

View File

@ -7,7 +7,6 @@
* Based on Linux driver
*/
#include <common.h>
#include <dm.h>
#include <dm/lists.h>
#include <errno.h>

View File

@ -4,7 +4,6 @@
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <log.h>
#include <usb.h>
#include <errno.h>

View File

@ -4,7 +4,6 @@
* Copyright (C) 2010 Freescale Semiconductor, Inc.
*/
#include <common.h>
#include <clk.h>
#include <log.h>
#include <usb.h>

View File

@ -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>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>

View File

@ -10,8 +10,8 @@
*
*/
#include <common.h>
#include <log.h>
#include <time.h>
#include <usb.h>
#include <linux/delay.h>
#include <usb/ulpi.h>

View File

@ -4,7 +4,6 @@
* All rights reserved.
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>

View File

@ -5,7 +5,6 @@
* Copyright (c) 2013 Lucas Stach
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <linux/delay.h>

View File

@ -6,7 +6,6 @@
* Based on ehci-mx6 driver
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>

View File

@ -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>

View File

@ -4,7 +4,6 @@
* DENX Software Engineering <mk@denx.de>
*/
#include <common.h>
#include <asm/arch/clk.h>
int usb_cpu_init(void)

View File

@ -3,7 +3,6 @@
* Copyright (C) 2012 Sughosh Ganu <urwithsughosh@gmail.com>
*/
#include <common.h>
#include <malloc.h>
#include <asm/io.h>
#include <clk.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2015 Alexey Brodkin <abrodkin@synopsys.com>
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <log.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
* Copyright (c) 2015 Tyco Fire Protection Products.
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <init.h>

View File

@ -3,7 +3,6 @@
* Copyright (c) 2021 Nuvoton Technology Corp.
*/
#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <reset.h>

View File

@ -5,7 +5,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <pci.h>

View File

@ -5,7 +5,6 @@
* Copyright (C) 2008 Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
*/
#include <common.h>
#include <console.h>
#include <dm.h>
#include <log.h>

View File

@ -4,7 +4,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <usb.h>

View File

@ -8,7 +8,6 @@
#define LOG_CATEGORY UCLASS_USB
#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <errno.h>

View File

@ -6,7 +6,6 @@
* Written by Simon Glass <sjg@chromium.org>
*/
#include <common.h>
#include <bootdev.h>
#include <dm.h>
#include <usb.h>

View File

@ -3,7 +3,6 @@
* Copyright (C) 2019 Broadcom.
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <usb.h>

View File

@ -8,7 +8,6 @@
*/
#include <clk.h>
#include <common.h>
#include <dm.h>
#include <generic-phy.h>
#include <log.h>

View File

@ -12,7 +12,6 @@
* exynos5 specific PHY-init sequence.
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>

View File

@ -7,7 +7,6 @@
* Author: Ramneek Mehresh<ramneek.mehresh@freescale.com>
*/
#include <common.h>
#include <log.h>
#include <usb.h>
#include <linux/errno.h>

View File

@ -13,7 +13,6 @@
* Vikas Sajjan <vikas.sajjan@samsung.com>
*/
#include <common.h>
#include <cpu_func.h>
#include <dm.h>
#include <log.h>

View File

@ -5,7 +5,6 @@
*/
#include <clk.h>
#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <dm/devres.h>

View File

@ -5,7 +5,6 @@
* MVEBU USB HOST xHCI Controller
*/
#include <common.h>
#include <dm.h>
#include <fdtdec.h>
#include <log.h>

View File

@ -8,7 +8,6 @@
* Author: Dan Murphy <dmurphy@ti.com>
*/
#include <common.h>
#include <log.h>
#include <usb.h>
#include <linux/errno.h>

View File

@ -5,7 +5,6 @@
* All rights reserved.
*/
#include <common.h>
#include <dm.h>
#include <dm/device_compat.h>
#include <init.h>

View File

@ -5,7 +5,6 @@
* Renesas RCar USB HOST xHCI Controller
*/
#include <common.h>
#include <clk.h>
#include <dm.h>
#include <fdtdec.h>

View File

@ -13,7 +13,6 @@
* Vikas Sajjan <vikas.sajjan@samsung.com>
*/
#include <common.h>
#include <cpu_func.h>
#include <log.h>
#include <asm/byteorder.h>

View File

@ -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>

View File

@ -7,7 +7,6 @@
*/
#include <hexdump.h>
#include <common.h>
#include <asm/cache.h>
#include <cpu_func.h>
#include <dm.h>

View File

@ -6,7 +6,6 @@
* (c) 2007 Sebastian Siewior <bigeasy@linutronix.de>
*/
#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>

View File

@ -6,7 +6,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <dm/device-internal.h>
#include <dm/device_compat.h>

View File

@ -5,7 +5,6 @@
* Author: Chunfeng Yun <chunfeng.yun@mediatek.com>
*/
#include <common.h>
#include <dm/lists.h>
#include <linux/iopoll.h>

View File

@ -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>

View File

@ -13,7 +13,6 @@
*
*/
#include <common.h>
#include <dm.h>
#include <log.h>
#include <dm/device-internal.h>

View File

@ -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>

View File

@ -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>

Some files were not shown because too many files have changed in this diff Show More