[PATCH v2 29/32] dm: core: Require users of devres to include the header
sjg at google.com
sjg at google.com
Thu Feb 6 03:31:40 CET 2020
At present devres.h is included in all files that include dm.h but few
make use of it. Also this pulls in linux/compat which adds several more
headers. Drop the automatic inclusion and require files to include devres
themselves. This provides a good indication of which files use devres.
Signed-off-by: Simon Glass <sjg at chromium.org>
Reviewed-by: Anatolij Gustschin <agust at denx.de>
---
Changes in v2: None
arch/arm/mach-aspeed/ast2500/clk_ast2500.c | 1 +
arch/arm/mach-imx/cmd_nandbcb.c | 1 +
arch/arm/mach-meson/board-info.c | 1 +
arch/arm/mach-meson/sm.c | 1 +
arch/arm/mach-rockchip/px30/clk_px30.c | 1 +
arch/arm/mach-rockchip/rk3036/clk_rk3036.c | 1 +
arch/arm/mach-rockchip/rk3128/clk_rk3128.c | 1 +
arch/arm/mach-rockchip/rk3188/clk_rk3188.c | 1 +
arch/arm/mach-rockchip/rk3188/rk3188.c | 1 +
arch/arm/mach-rockchip/rk322x/clk_rk322x.c | 1 +
arch/arm/mach-rockchip/rk3288/clk_rk3288.c | 1 +
arch/arm/mach-rockchip/rk3288/rk3288.c | 1 +
arch/arm/mach-rockchip/rk3308/clk_rk3308.c | 1 +
arch/arm/mach-rockchip/rk3328/clk_rk3328.c | 1 +
arch/arm/mach-rockchip/rk3368/clk_rk3368.c | 1 +
arch/arm/mach-rockchip/rk3399/clk_rk3399.c | 1 +
arch/arm/mach-rockchip/rv1108/clk_rv1108.c | 1 +
arch/arm/mach-stm32mp/pwr_regulator.c | 1 +
arch/riscv/lib/andes_plic.c | 1 +
arch/riscv/lib/andes_plmt.c | 1 +
arch/riscv/lib/sifive_clint.c | 1 +
board/google/veyron/veyron.c | 1 +
board/st/stm32mp1/stm32mp1.c | 1 +
cmd/gpio.c | 1 +
cmd/gpt.c | 1 +
cmd/mtd.c | 2 ++
cmd/ubi.c | 1 +
drivers/adc/rockchip-saradc.c | 1 +
drivers/block/blk-uclass.c | 1 +
drivers/clk/altera/clk-arria10.c | 1 +
drivers/clk/aspeed/clk_ast2500.c | 1 +
drivers/clk/at91/clk-generated.c | 1 +
drivers/clk/at91/clk-usb.c | 1 +
drivers/clk/clk-composite.c | 2 ++
drivers/clk/clk-divider.c | 2 ++
drivers/clk/clk-fixed-factor.c | 2 ++
drivers/clk/clk-gate.c | 2 ++
drivers/clk/clk-mux.c | 2 ++
drivers/clk/clk-ti-sci.c | 1 +
drivers/clk/clk-uclass.c | 4 +++-
drivers/clk/clk_fixed_factor.c | 1 +
drivers/clk/clk_sandbox_ccf.c | 2 ++
drivers/clk/clk_sandbox_test.c | 1 +
drivers/clk/clk_versal.c | 1 +
drivers/clk/clk_zynqmp.c | 1 +
drivers/clk/imx/clk-composite-8m.c | 2 ++
drivers/clk/imx/clk-gate2.c | 2 ++
drivers/clk/imx/clk-pfd.c | 2 ++
drivers/clk/imx/clk-pll14xx.c | 2 ++
drivers/clk/imx/clk-pllv3.c | 2 ++
drivers/clk/meson/axg.c | 1 +
drivers/clk/meson/g12a.c | 1 +
drivers/clk/meson/gxbb.c | 1 +
drivers/clk/rockchip/clk_rk3188.c | 1 +
drivers/clk/rockchip/clk_rk3288.c | 1 +
drivers/clk/sifive/fu540-prci.c | 1 +
drivers/core/devres.c | 1 +
drivers/dfu/dfu_mtd.c | 1 +
drivers/dma/ti/k3-udma.c | 3 ++-
drivers/firmware/ti_sci.c | 1 +
drivers/gpio/dwapb_gpio.c | 1 +
drivers/gpio/mscc_sgpio.c | 1 +
drivers/i2c/ast_i2c.c | 1 +
drivers/i2c/designware_i2c.c | 1 +
drivers/i2c/meson_i2c.c | 1 +
drivers/i2c/muxes/i2c-mux-gpio.c | 1 +
drivers/i2c/tegra_i2c.c | 1 +
drivers/misc/microchip_flexcom.c | 1 +
drivers/misc/tegra186_bpmp.c | 1 +
drivers/mmc/am654_sdhci.c | 1 +
drivers/mmc/aspeed_sdhci.c | 1 +
drivers/mmc/fsl_esdhc_imx.c | 1 +
drivers/mmc/omap_hsmmc.c | 2 ++
drivers/mmc/rockchip_sdhci.c | 1 +
drivers/mmc/tegra_mmc.c | 1 +
drivers/mmc/zynq_sdhci.c | 1 +
drivers/mtd/mtd_uboot.c | 1 +
drivers/mtd/mtdconcat.c | 1 +
drivers/mtd/mtdcore.c | 1 +
drivers/mtd/mtdpart.c | 1 +
drivers/mtd/nand/bbt.c | 1 +
drivers/mtd/nand/raw/atmel_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c | 1 +
drivers/mtd/nand/raw/brcmnand/brcmnand.c | 2 ++
drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c | 1 +
drivers/mtd/nand/raw/denali.c | 2 ++
drivers/mtd/nand/raw/fsl_elbc_nand.c | 1 +
drivers/mtd/nand/raw/fsl_ifc_nand.c | 1 +
drivers/mtd/nand/raw/mxs_nand_spl.c | 1 +
drivers/mtd/nand/raw/nand_base.c | 1 +
drivers/mtd/nand/raw/nand_bbt.c | 1 +
drivers/mtd/nand/raw/nand_bch.c | 1 +
drivers/mtd/nand/raw/nand_timings.c | 1 +
drivers/mtd/nand/raw/nand_util.c | 1 +
drivers/mtd/nand/raw/pxa3xx_nand.c | 2 ++
drivers/mtd/nand/raw/stm32_fmc2_nand.c | 1 +
drivers/mtd/nand/raw/sunxi_nand.c | 2 ++
drivers/mtd/nand/spi/core.c | 1 +
drivers/mtd/onenand/onenand_base.c | 1 +
drivers/mtd/spi/spi-nor-core.c | 1 +
drivers/mtd/ubi/attach.c | 1 +
drivers/mtd/ubi/build.c | 1 +
drivers/mtd/ubi/debug.c | 1 +
drivers/mtd/ubi/eba.c | 1 +
drivers/mtd/ubi/fastmap.c | 2 ++
drivers/mtd/ubi/io.c | 1 +
drivers/mtd/ubi/kapi.c | 1 +
drivers/mtd/ubi/vmt.c | 1 +
drivers/mtd/ubi/vtbl.c | 1 +
drivers/mtd/ubi/wl.c | 1 +
drivers/net/designware.c | 1 +
drivers/net/dwmac_socfpga.c | 1 +
drivers/net/mvneta.c | 1 +
drivers/net/mvpp2.c | 2 ++
drivers/net/phy/dp83867.c | 1 +
drivers/net/sni_ave.c | 1 +
drivers/net/zynq_gem.c | 1 +
drivers/pci/pcie_dw_ti.c | 1 +
drivers/pci/pcie_mediatek.c | 1 +
drivers/phy/allwinner/phy-sun4i-usb.c | 1 +
drivers/phy/marvell/comphy_core.c | 1 +
drivers/phy/omap-usb2-phy.c | 1 +
drivers/phy/phy-mtk-tphy.c | 1 +
drivers/phy/phy-ti-am654.c | 1 +
drivers/phy/ti-pipe3-phy.c | 1 +
drivers/pinctrl/intel/pinctrl.c | 1 +
drivers/pinctrl/mscc/mscc-common.c | 1 +
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c | 1 +
drivers/pinctrl/nxp/pinctrl-imx.c | 1 +
drivers/pinctrl/nxp/pinctrl-mxs.c | 1 +
drivers/pinctrl/pinctrl_stm32.c | 1 +
drivers/pinctrl/renesas/pfc.c | 1 +
drivers/power/domain/meson-ee-pwrc.c | 1 +
drivers/power/domain/meson-gx-pwrc-vpu.c | 1 +
drivers/power/domain/mtk-power-domain.c | 1 +
drivers/power/domain/ti-sci-power-domain.c | 1 +
drivers/power/regulator/pbias_regulator.c | 1 +
drivers/ram/rockchip/dmc-rk3368.c | 1 +
drivers/remoteproc/rproc-elf-loader.c | 1 +
drivers/remoteproc/stm32_copro.c | 1 +
drivers/remoteproc/ti_k3_arm64_rproc.c | 1 +
drivers/remoteproc/ti_k3_dsp_rproc.c | 1 +
drivers/remoteproc/ti_k3_r5f_rproc.c | 1 +
drivers/reset/reset-mediatek.c | 1 +
drivers/reset/reset-ti-sci.c | 1 +
drivers/reset/reset-uclass.c | 1 +
drivers/serial/ns16550.c | 1 +
drivers/serial/serial_mtk.c | 3 ++-
drivers/serial/serial_omap.c | 1 +
drivers/serial/serial_sifive.c | 1 +
drivers/serial/serial_zynq.c | 1 +
drivers/smem/msm_smem.c | 2 ++
drivers/soc/ti/k3-navss-ringacc.c | 2 ++
drivers/spi/atmel-quadspi.c | 1 +
drivers/spi/cadence_qspi.c | 1 +
drivers/spi/spi-mem.c | 1 +
drivers/spi/ti_qspi.c | 1 +
drivers/spi/zynqmp_gqspi.c | 1 +
drivers/sysreset/sysreset-ti-sci.c | 1 +
drivers/sysreset/sysreset_syscon.c | 1 +
drivers/tee/optee/core.c | 1 +
drivers/timer/ast_timer.c | 1 +
drivers/timer/cadence-ttc.c | 1 +
drivers/timer/timer-uclass.c | 1 +
drivers/ufs/cdns-platform.c | 1 +
drivers/ufs/ti-j721e-ufs.c | 1 +
drivers/ufs/ufs.c | 1 +
drivers/usb/cdns3/core.c | 1 +
drivers/usb/cdns3/gadget.c | 2 ++
drivers/usb/cdns3/host.c | 1 +
drivers/usb/dwc3/core.c | 2 ++
drivers/usb/dwc3/dwc3-omap.c | 1 +
drivers/usb/dwc3/gadget.c | 1 +
drivers/usb/dwc3/ti_usb_phy.c | 1 +
drivers/usb/gadget/at91_udc.c | 2 ++
drivers/usb/gadget/composite.c | 1 +
drivers/usb/gadget/dwc2_udc_otg.c | 1 +
drivers/usb/gadget/f_mass_storage.c | 1 +
drivers/usb/gadget/pxa25x_udc.c | 1 +
drivers/usb/gadget/udc/udc-core.c | 1 +
drivers/usb/host/ehci-generic.c | 1 +
drivers/usb/host/ohci-da8xx.c | 1 +
drivers/usb/host/ohci-generic.c | 1 +
drivers/usb/musb-new/am35x.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_host.c | 1 +
drivers/usb/musb-new/musb_uboot.c | 1 +
drivers/usb/musb-new/omap2430.c | 1 +
drivers/video/exynos/exynos_mipi_dsi.c | 1 +
drivers/video/mipi_dsi.c | 1 +
drivers/video/rockchip/rk3288_mipi.c | 1 +
drivers/video/rockchip/rk3399_mipi.c | 1 +
drivers/video/rockchip/rk_vop.c | 1 +
drivers/video/tegra124/sor.c | 1 +
drivers/virtio/virtio_mmio.c | 1 +
drivers/virtio/virtio_pci_legacy.c | 1 +
drivers/virtio/virtio_pci_modern.c | 1 +
drivers/virtio/virtio_sandbox.c | 1 +
drivers/watchdog/ast_wdt.c | 1 +
drivers/watchdog/cdns_wdt.c | 1 +
drivers/watchdog/sp805_wdt.c | 1 +
drivers/watchdog/xilinx_tb_wdt.c | 1 +
fs/ubifs/debug.c | 1 +
fs/ubifs/gc.c | 1 +
fs/ubifs/io.c | 1 +
fs/ubifs/log.c | 1 +
fs/ubifs/lpt.c | 1 +
fs/ubifs/lpt_commit.c | 1 +
fs/ubifs/master.c | 1 +
fs/ubifs/orphan.c | 1 +
fs/ubifs/recovery.c | 1 +
fs/ubifs/replay.c | 1 +
fs/ubifs/sb.c | 1 +
fs/ubifs/scan.c | 1 +
fs/ubifs/super.c | 1 +
fs/ubifs/tnc.c | 1 +
fs/ubifs/tnc_misc.c | 1 +
fs/ubifs/ubifs.c | 1 +
fs/yaffs2/yaffs_allocator.c | 1 +
fs/yaffs2/yaffs_checkptrw.c | 1 +
fs/yaffs2/yaffs_guts.c | 1 +
fs/yaffs2/yaffs_summary.c | 1 +
fs/yaffs2/yaffs_yaffs1.c | 1 +
fs/yaffs2/yaffs_yaffs2.c | 1 +
fs/yaffs2/yaffsfs.c | 1 +
include/dm/device.h | 2 --
include/dm/devres.h | 4 ++++
lib/bch.c | 1 +
lib/crypto/asymmetric_type.c | 2 ++
lib/crypto/pkcs7_parser.c | 1 +
lib/crypto/public_key.c | 2 ++
lib/crypto/x509_cert_parser.c | 1 +
lib/crypto/x509_public_key.c | 2 ++
lib/list_sort.c | 1 +
test/dm/devres.c | 1 +
test/dm/regmap.c | 1 +
test/dm/syscon.c | 1 +
test/dm/test-fdt.c | 1 +
242 files changed, 275 insertions(+), 5 deletions(-)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list