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

index 7d864a4088036b065036803f385731223e23d9db..3e9f5e57ed012c9c34104027d82109b1093208f6 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch/scu_ast2500.h>
+#include <linux/err.h>
 
 int ast_get_clk(struct udevice **devp)
 {
index 334cc0766eedef7280fddc042cb4d24c45f50f35..a1c265f46f156faba0c3e7279bb888540cf8d549 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <nand.h>
+#include <dm/devres.h>
 
 #include <asm/io.h>
 #include <jffs2/jffs2.h>
index 0d3b40a2491b69d1880afb113a0496481b8981f9..4b88afa9b7b77a49d393eadffafec82fdf9cac51 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/bitfield.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/err.h>
 
 #define AO_SEC_SD_CFG8         0xe0
 #define AO_SEC_SOCINFO_OFFSET  AO_SEC_SD_CFG8
index fabcb3bfd7478f40c7c5744cd1998513d64d3686..fac286b9c851703cac77a5a61961d2067bb73e01 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <asm/arch/sm.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <dm.h>
 #include <linux/bitfield.h>
index 0bd6b471dae034b35790491b92fa62bd4ac54fb7..98a1bcd224fafc84064e31825847e225c63d839d 100644 (file)
@@ -8,6 +8,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_px30.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 20e2ed681321950576fb0210283cde34dc038a89..5d0def3b524c71c7515fcd2947776df990fd36aa 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3036.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 827750bf98b69e43643cc2715a6c6931b252965f..f9ce1f723488d276a9a89104a618c8ea4e0c658d 100644 (file)
@@ -8,6 +8,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3128.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 9d4fc37eda91e84444362f6708ce69991ebe54a5..a0dcac373248732a9330115a1f4ad0ed2a6af6f1 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3188.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 61d410d780e4ddf26c1383e8baf6732763e3fd5c..e52466fb6fbd777da6dfbab88b574a8d594ef599 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/grf_rk3188.h>
 #include <asm/arch-rockchip/hardware.h>
+#include <linux/err.h>
 
 #define GRF_BASE       0x20008000
 
index 958c7b82b92a0cdfa20fe88381338961713473f3..fc5abd736e8e09451225750f2880c3dee37b578c 100644 (file)
@@ -8,6 +8,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk322x.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 1730f1244397f980295edccc87772d929855dfa3..e05bd06a8d2e95648083013abb7f058bf7812806 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 18ea7f35fbf869c8b67e342f48bcc2a1637ee636..6088911a1b70984cb4c11fa7c41710d7812d0e52 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/arch-rockchip/pmu_rk3288.h>
 #include <asm/arch-rockchip/qos_rk3288.h>
 #include <asm/arch-rockchip/sdram.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 51b43153e8613f50d2a3e5210f85e9142b9ad30d..1feb23722408e008edb7259e15aef40befc6e4c9 100644 (file)
@@ -8,6 +8,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch/cru_rk3308.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index f64f0cbbe5600790c6ad84c5de1659e32aaac7b1..e5375514def68032edfe83374cf3b3eea8a83161 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3328.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 55e5dd768a9ff2184578ce4595b91b3d19fc6a72..9a33c67bc94df70efe8705d9355e989e87e5bad8 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3368.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index a80a46f1dbce9646370f3fbe6f48f9e90f5a459d..d23a5e9435cb8fb0554624f4dad884fc8234e4d1 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
+#include <linux/err.h>
 
 static int rockchip_get_cruclk(struct udevice **devp)
 {
index 58a7e889cc36d145232090ee5beaa45219c5799b..b37ae1c494569ab9934d1a7a38bd91ec729d5e25 100644 (file)
@@ -9,6 +9,7 @@
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rv1108.h>
+#include <linux/err.h>
 
 int rockchip_get_clk(struct udevice **devp)
 {
index 9484645dbdd59a35efc5b2d1423259491b2148d1..977cc7d348d6d082285c502e51e680c3ddc15523 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/err.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 
index 3868569a65a96d1ad4a7ad34901661d7ef87c0d0..20529ab3eb58899ffca8790558494e34e9a370b3 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/io.h>
 #include <asm/syscon.h>
 #include <cpu.h>
+#include <linux/err.h>
 
 /* pending register */
 #define PENDING_REG(base, hart)        ((ulong)(base) + 0x1000 + ((hart) / 4) * 4)
index 84f46075003507e7cc30dc5c664590cd6212a401..a7e90ca992c6b5eebe1afb5ece6d54aa2318b488 100644 (file)
@@ -13,6 +13,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/syscon.h>
+#include <linux/err.h>
 
 /* mtime register */
 #define MTIME_REG(base)                        ((ulong)(base))
index d7899d16d7a2be5fe988c450afa262d1eb99eb3d..5e0d25720bdabd6d4aaf0608afe230cb2395c0f9 100644 (file)
@@ -13,6 +13,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/syscon.h>
+#include <linux/err.h>
 
 /* MSIP registers */
 #define MSIP_REG(base, hart)           ((ulong)(base) + (hart) * 4)
index dd2c014c60a6a73c76e35ff44f78917200f34268..6b9c34818b35bac94dc4535b273c2d810e6a38b9 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <asm/arch-rockchip/clock.h>
 #include <dt-bindings/clock/rk3288-cru.h>
+#include <linux/err.h>
 #include <power/regulator.h>
 
 /*
index e82a43074fb9dd0f7857879ca097c1e95e3b239c..9ee2e0b3d31425c2b63f99c5088600a4e4fe11f3 100644 (file)
@@ -32,6 +32,7 @@
 #include <asm/arch/stm32.h>
 #include <asm/arch/sys_proto.h>
 #include <jffs2/load_kernel.h>
+#include <linux/err.h>
 #include <power/regulator.h>
 #include <usb/dwc2_udc.h>
 
index eff36ab2af329df34e83bafee24a633a8380ae76..5f4c7ff114e0589ac800233cb4382406602639f9 100644 (file)
@@ -11,6 +11,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <asm/gpio.h>
+#include <linux/err.h>
 
 __weak int name_to_gpio(const char *name)
 {
index 964702bad43e91281d4e0a937143babdd5250dd0..efaf1bcecb2bae46c83268b5e69564f6857b40bd 100644 (file)
--- a/cmd/gpt.c
+++ b/cmd/gpt.c
@@ -20,6 +20,7 @@
 #include <div64.h>
 #include <memalign.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/sizes.h>
 #include <stdlib.h>
 
index a559b5a4a35aaeb18106703dd72f6d18e493a546..f407c5e4450ac438b0b62c685c37adbac99e14a8 100644 (file)
--- a/cmd/mtd.c
+++ b/cmd/mtd.c
@@ -14,6 +14,8 @@
 #include <malloc.h>
 #include <mapmem.h>
 #include <mtd.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 
 #include <linux/ctype.h>
 
index 22ba5b1a2cedefe2f843f3464f10cce72e65adc9..7fb4cdfc2a884ac440762e93127e3c95c8999711 100644 (file)
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -19,6 +19,7 @@
 #include <mtd.h>
 #include <nand.h>
 #include <onenand_uboot.h>
+#include <dm/devres.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <linux/err.h>
index ed773b9642b0ebf553b9f5c2dbe8763609d0c139..850142cce377b5a6ea661e75dd7e7c567c05ea8b 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <asm/io.h>
+#include <linux/err.h>
 
 #define SARADC_CTRL_CHN_MASK           GENMASK(2, 0)
 #define SARADC_CTRL_POWER_CTRL         BIT(3)
index ca8978f0e1404a437f7ed5e15a6386cf99b5aa71..77711144919ba8d53e94c88730ffb68f8043b109 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 
 static const char *if_typename_str[IF_TYPE_COUNT] = {
        [IF_TYPE_IDE]           = "ide",
index 179869df45f7b1407633361af964de8999f520ab..a39cd34fe5833e3a426edd1b7c452ebcc92adb00 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/io.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/util.h>
 
index b3a3f3d4dd9f7e9541939c4ce740236a24eaf6c0..f4a441ad684a5e5830882970dcf8f35314a5205c 100644 (file)
@@ -10,6 +10,7 @@
 #include <asm/arch/scu_ast2500.h>
 #include <dm/lists.h>
 #include <dt-bindings/clock/ast2500-scu.h>
+#include <linux/err.h>
 
 /*
  * MAC Clock Delay settings, taken from Aspeed SDK
index 70b277e26f72b969fc9d8c39112d925e3934401b..d8562e131dafc265d6bda29488d5204e52e152b9 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
index 24af183b55066ed0722a386e92b5523349e3859a..c3cb2ba0146fff57cb06cad3588766222b14d5ca 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
index a5626c33d1e3e67b5f792adb36173c6ab49913ed..414185031e2b1b7801644f5847f1289d8a97eb5c 100644 (file)
@@ -9,8 +9,10 @@
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
+#include <linux/err.h>
 
 #include "clk.h"
 
index 822e09b084492ee80942a3f649d4a438f6ea3d79..d79ae367b8077547d11d8fc926b2d2b969d4e1e3 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <dm/uclass.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <linux/clk-provider.h>
+#include <linux/err.h>
 #include <linux/log2.h>
 #include <div64.h>
 #include <clk.h>
index 711b0588bc39fe57c35e4675913107f19ee32dc1..2ceb6bb171c00f8b2dbbd43f3de7940a1664d122 100644 (file)
@@ -9,10 +9,12 @@
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <div64.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_IMX_FIXED_FACTOR "ccf_clk_fixed_factor"
 
index 70b879455452c3ec447794bd1fb3cecf897b5d02..6415c2f1b91dfa661ca716a74e479e5dbbdfd95a 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_GATE "clk_gate"
 
index 5acc0b8cbd06ce4706cc59d8e758697cf0234bd0..b9d2ae6778fc0d82cefb5b0df1316a8c91b19de9 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_CCF_MUX "ccf_clk_mux"
 
index 8212435ba81c626aeb3ee84f3a81757edf1d23aa..b085a4fc14c1f4e85f1db38a5e75216d7e9b178c 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <k3-avs.h>
 
index 49fa60eb7c6666064ba14c831b14805efe5dbad9..6787d2569ca3b17b7c4fae36a0ebb08bd7e88099 100644 (file)
 #include <clk.h>
 #include <clk-uclass.h>
 #include <dm.h>
-#include <dm/read.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <dm/devres.h>
+#include <dm/read.h>
 #include <linux/clk-provider.h>
+#include <linux/err.h>
 
 static inline const struct clk_ops *clk_dev_ops(struct udevice *dev)
 {
index dcdb6ddf5cf898d40ffec551b0c742b55734e58e..cf9c4ae367fd25c054ab797523b7571db13e8337 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk-uclass.h>
 #include <div64.h>
 #include <dm.h>
+#include <linux/err.h>
 
 struct clk_fixed_factor {
        struct clk parent;
index 9fa27229e18668305e41d65d7e6a8e1390f4d657..0903c817a644e992956bdcc361e91fc79e076f42 100644 (file)
 #include <clk.h>
 #include <asm/clk.h>
 #include <clk-uclass.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <sandbox-clk.h>
+#include <linux/err.h>
 
 /*
  * Sandbox implementation of CCF primitives necessary for clk-uclass testing
index 41954660ea139ee7c962de70af7e4afd5fc8ad22..628110de3e0942af0b24e24cac5cd11f0140c620 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <clk.h>
 #include <asm/clk.h>
+#include <linux/err.h>
 
 struct sandbox_clk_test {
        struct clk clks[SANDBOX_CLK_TEST_NON_DEVM_COUNT];
index 7e97b0c4bf3a19df17ad79b01f417e1b2542ae46..66cbef15ab8a68a26df2d5aeb325568ba1da0ed3 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <asm/arch/sys_proto.h>
 #include <zynqmp_firmware.h>
+#include <linux/err.h>
 
 #define MAX_PARENT                     100
 #define MAX_NODES                      6
index 72fc39fa47a816fb70d9b230d23f0e527e684f6f..a365b565e172484a6e6ebf5d1ba2f9cbc5232d25 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <asm/arch/sys_proto.h>
 #include <dm.h>
+#include <linux/err.h>
 
 static const resource_size_t zynqmp_crf_apb_clkc_base = 0xfd1a0020;
 static const resource_size_t zynqmp_crl_apb_clkc_base = 0xff5e0020;
index 95120d6559cd96ffcee3709d9a8d56bfef233485..3e99c528de543993e8fbbef10351817693ae86fc 100644 (file)
@@ -8,9 +8,11 @@
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_IMX_COMPOSITE "imx_clk_composite"
 
index 1b9db6e791f1ef9e8fff65638da1a331f008ef2c..b38890d5ba5bd6fb17d3d77e722416eb6b90dc5b 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_IMX_GATE2 "imx_clk_gate2"
 
index 4ae55f5a0777e178e3144b542b2cf2d2e4e15c8a..b8be3167c4cd9f6374df121fcf76541428bb60ed 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
 #include <div64.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_IMX_PFD "imx_clk_pfd"
 
index 2246beb21b2889e7d9779a2986c52035f105d79e..1673eb26b2c7e7ebea710a0f5e72e6f143dcd81a 100644 (file)
@@ -10,7 +10,9 @@
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/clk-provider.h>
+#include <linux/err.h>
 #include <linux/iopoll.h>
 #include <clk.h>
 #include <div64.h>
index 0cdb9df45d997b84ac4b3a88ea8af7e52440a105..525442debf06a0d4b205af9b64fb6c7e8caf7e50 100644 (file)
 #include <malloc.h>
 #include <clk-uclass.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <dm/uclass.h>
 #include <clk.h>
 #include "clk.h"
+#include <linux/err.h>
 
 #define UBOOT_DM_CLK_IMX_PLLV3_GENERIC "imx_clk_pllv3_generic"
 #define UBOOT_DM_CLK_IMX_PLLV3_SYS     "imx_clk_pllv3_sys"
index 32cbf752aed81727564c1f28012feb35cd6d7d82..7035b59a13794a51e64c9739fa860dbec84d72df 100644 (file)
@@ -15,6 +15,7 @@
 #include <div64.h>
 #include <dt-bindings/clock/axg-clkc.h>
 #include "clk_meson.h"
+#include <linux/err.h>
 
 #define XTAL_RATE 24000000
 
index 1b2523bbf1feca51f8f5a8a018e38b40b07bb793..686d94ebfe858d0f3280dbcd7e36881d945ca980 100644 (file)
@@ -14,6 +14,7 @@
 #include <syscon.h>
 #include <div64.h>
 #include <dt-bindings/clock/g12a-clkc.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include "clk_meson.h"
 
index abb5337e78295a70d9352a18e9b48f929af1df41..e781e08d9d5d92d4ec3760fbfb1bf574dd102350 100644 (file)
@@ -15,6 +15,7 @@
 #include <syscon.h>
 #include <dt-bindings/clock/gxbb-clkc.h>
 #include "clk_meson.h"
+#include <linux/err.h>
 
 /* This driver support only basic clock tree operations :
  * - Can calculate clock frequency on a limited tree
index 3ea9a81b32456c1afe69344acf9c7a659610f6f2..82eea4006362688d49f4d7754b3c3ed9b324ec7b 100644 (file)
@@ -20,6 +20,7 @@
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <linux/log2.h>
 
 enum rk3188_clk_type {
index cc1c1e81e95c2bef07e1d0e7603c30d2430af10b..2d42f6ffc5d9bb403c58010fcdceb1f77add4fbe 100644 (file)
@@ -21,6 +21,7 @@
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <linux/log2.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index ce0769f2d136d9b482069ebefeb905e06afb85a6..8847178001bdbbdd72d1a37d4d67e8d256cdd911 100644 (file)
@@ -35,6 +35,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <errno.h>
+#include <linux/err.h>
 
 #include <linux/math64.h>
 #include <linux/clk/analogbits-wrpll-cln28hpc.h>
index 237b42653c6beb51e6cdc8043a8ec0941b925f6b..d98e80de26d73a5cf8df62113e6fe44c491fce3e 100644 (file)
@@ -14,6 +14,7 @@
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <dm/root.h>
 #include <dm/util.h>
 
index 9528a7b4eecb8a099e6b1d0325cc974780febafe..36cd4e945b2a5db57402a787cc7ab2c5b1be8839 100644 (file)
@@ -11,6 +11,7 @@
 #include <dfu.h>
 #include <mtd.h>
 #include <jffs2/load_kernel.h>
+#include <linux/err.h>
 
 static bool mtd_is_aligned_with_block_size(struct mtd_info *mtd, u64 size)
 {
index 5820c8270ba8f1da47f612fa84b1f676be86acf5..ab516b573c8820558c9605b45930f7dde58511fb 100644 (file)
@@ -12,7 +12,7 @@
 #include <malloc.h>
 #include <asm/dma-mapping.h>
 #include <dm.h>
-#include <dm/device.h>
+#include <dm/devres.h>
 #include <dm/read.h>
 #include <dm/of_access.h>
 #include <dma.h>
@@ -20,6 +20,7 @@
 #include <linux/delay.h>
 #include <dt-bindings/dma/k3-udma.h>
 #include <linux/bitmap.h>
+#include <linux/err.h>
 #include <linux/soc/ti/k3-navss-ringacc.h>
 #include <linux/soc/ti/cppi5.h>
 #include <linux/soc/ti/ti-udma.h>
index 62b1dc2006403b337b577de8916821f99d195503..5e37ee05707dc7f240d6b91455e938eaf057a314 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <mailbox.h>
 #include <dm/device.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
index 2eb1547b4f36de3f41f24218484c034b720076da..58e3e7b1f704d59fafca7b4203094ba2aedfad42 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <errno.h>
index c899454ec41e8a1080cfbd5c7dea68e9d5060227..3378ebb442e5261696f4a447fc5884ba2af00af0 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <errno.h>
 #include <clk.h>
+#include <linux/err.h>
 
 #define MSCC_SGPIOS_PER_BANK   32
 #define MSCC_SGPIO_BANK_DEPTH  4
index 35dc234160d9acd2bcd61667894357633582f05d..c84d75ac922fa1e2ad45062d6e3e46297018bdf6 100644 (file)
@@ -13,6 +13,7 @@
 #include <i2c.h>
 #include <asm/io.h>
 #include <asm/arch/scu_ast2500.h>
+#include <linux/err.h>
 
 #include "ast_i2c.h"
 
index c8c5d2c331026e18308a6ef192e96320e44ba2be..ae9cf16297347e7d2aa584a8600b318a6b4b7824 100644 (file)
@@ -12,6 +12,7 @@
 #include <reset.h>
 #include <asm/io.h>
 #include "designware_i2c.h"
+#include <linux/err.h>
 
 #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
 static int  dw_i2c_enable(struct i2c_regs *i2c_base, bool enable)
index ee59bac123628c6e2cb21a7a62d0d368d3791264..bcf45160d8d8f327e408b9d0f64cd6e1e41db35c 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/err.h>
 
 #define I2C_TIMEOUT_MS         100
 
index e8b124f4f5fc972d8a4898238a2014ebe89d7ba6..29e283ce25e6654ec0f8b4d85ba10a405185fd88 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm-generic/gpio.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/pinctrl.h>
 #include <fdtdec.h>
 #include <i2c.h>
index 4be41ddbf057ce41335a61ff992f11320921c004..f37db31c3c8e7e9e5857f208dca08495f5320032 100644 (file)
@@ -18,6 +18,7 @@
 #endif
 #include <asm/arch/gpio.h>
 #include <asm/arch-tegra/tegra_i2c.h>
+#include <linux/err.h>
 
 enum i2c_type {
        TYPE_114,
index 1bc19edfcbac2bd7a186cea854da0e53a1625335..4cff160d8876a3298555e0d9993b77bd457bc765 100644 (file)
@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <misc.h>
 #include <asm/io.h>
+#include <linux/err.h>
 
 struct microchip_flexcom_regs {
        u32 cr;
index 89e27dd526afdec724b1eb6da96e46d9f30a687c..489337c3d0b0032bdf4a4e4f0b992b67ce1509b1 100644 (file)
@@ -12,6 +12,7 @@
 #include <misc.h>
 #include <asm/arch-tegra/bpmp_abi.h>
 #include <asm/arch-tegra/ivc.h>
+#include <linux/err.h>
 
 #define BPMP_IVC_FRAME_COUNT 1
 #define BPMP_IVC_FRAME_SIZE 128
index 41a90834ffc14a86416fb13ba98eef009701d149..6053d3d536e6a29a67772b6415c46aad9a432f4d 100644 (file)
@@ -12,6 +12,7 @@
 #include <power-domain.h>
 #include <regmap.h>
 #include <sdhci.h>
+#include <linux/err.h>
 
 /* CTL_CFG Registers */
 #define CTL_CFG_2              0x14
index 1321ec37e1bfa18e80f9d5b42b855573137c0133..8929e603f3384099ca1de53d7ae8ec061c03489f 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <sdhci.h>
+#include <linux/err.h>
 
 struct aspeed_sdhci_plat {
        struct mmc_config cfg;
index 462ad2878a2b37c90ba98271c8a05645af47287e..7cbd6e458798c0a8598484973a867cd6265f34fe 100644 (file)
@@ -19,6 +19,7 @@
 #include <hwconfig.h>
 #include <mmc.h>
 #include <part.h>
+#include <linux/err.h>
 #include <power/regulator.h>
 #include <malloc.h>
 #include <fsl_esdhc_imx.h>
index 5d0cfb2ebdd48bf154a19bb60fa55928ceffd6d3..5334723a9f0d7d230a0be63d5df1724134afa8b2 100644 (file)
@@ -47,6 +47,8 @@
 #include <asm/arch/mux.h>
 #endif
 #include <dm.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <power/regulator.h>
 #include <thermal.h>
 
index dd3d5574dbc74dd5f46baae1d1f7d912983e074d..b440996b269e41b20a5e35dbcb96daa165fef59d 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <linux/err.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <mapmem.h>
index 22990fa98b78d1314fa6c654dde5dd8643774481..f022e93552521f8d414fbfcae363d7f3373b2bce 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <asm/arch-tegra/tegra_mmc.h>
+#include <linux/err.h>
 
 struct tegra_mmc_plat {
        struct mmc_config cfg;
index 529eec9c45cd6cc4c438dd506dbe364b1470f4bd..83c32a361a5b9a850ecff58c3f2e292a52a97a44 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include "mmc_private.h"
+#include <linux/err.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
 #include <sdhci.h>
index 8aeccb016dc39fb1147e07320ac378754f4f4e3e..17df8b0ffceef83688dfe604889010fab6d04423 100644 (file)
@@ -7,6 +7,7 @@
 #include <env.h>
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/partitions.h>
 #include <mtd.h>
index 592f58dcd36c6a48d55827057a111dc8d3880a12..5621c3fd266e48d532a453029df7a36d3fcfe7b1 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
index 838c2883186cf6ca6799dac28cc0536efa24579c..f8d3f4d246ce0c02bee5059b67870d6023b6c2c1 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/ptrace.h>
index fd8d8e5ea7295ac44c2bb25677d2e3df06f6d1cc..56acdbf65ba998c9eed092222fe2715d00497c42 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>
index f3d05e6757fc0455be8d31f5b705bde0c18f0b7e..133670cb19983698d511a1d136665024814d9f01 100644 (file)
@@ -10,6 +10,7 @@
 #define pr_fmt(fmt)    "nand-bbt: " fmt
 
 #include <common.h>
+#include <dm/devres.h>
 #include <linux/mtd/nand.h>
 #ifndef __UBOOT__
 #include <linux/slab.h>
index 31ad2cfa8882eb6c354e56a09c2589e7c0b1cd8e..35265853496bb88b35a190b094037ac945a3caf6 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <asm/gpio.h>
 #include <asm/arch/gpio.h>
+#include <dm/devres.h>
 
 #include <malloc.h>
 #include <nand.h>
index 16b0d4440a79d7c6f87a01d4cc6afe21428e9881..ea7c65a1f6bae43b3e5140710c5cb696381061f1 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index ece944485ce7011e25ec21fb87b987f4b1ec3824..3a136155dd92984bd2669c5bb9c9f6571c97af9c 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index 3586baa4fa0057a92843a69941a5774da0adc13b..6aca011db252fec9acf85096920c200ad1a0b181 100644 (file)
@@ -4,6 +4,7 @@
 #include <asm/io.h>
 #include <memalign.h>
 #include <nand.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
index 074592925386bc5abe01d359830f264cec1f0d6c..d3e39661e1a92bfb35d4b10c72f7e3366d44cb3f 100644 (file)
@@ -17,6 +17,8 @@
 #include <memalign.h>
 #include <nand.h>
 #include <clk.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/completion.h>
 #include <linux/errno.h>
index 883948355ca8edf3323876157e804f1f3146926c..bb8aea2d0192dde3a73f4938ed65299812fe589e 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <common.h>
 #include "brcmnand_compat.h"
+#include <dm/devres.h>
 
 static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt,
                             va_list ap)
index b5a98f52f8a55c40ba2174911ea2c607f60fab60..235a5fcd52b2729edf61f06ea80faeb3fc64a8bb 100644 (file)
@@ -8,8 +8,10 @@
 #include <asm/dma-mapping.h>
 #include <dm.h>
 #include <nand.h>
+#include <dm/devres.h>
 #include <linux/bitfield.h>
 #include <linux/dma-direction.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/mtd/mtd.h>
index cbf689af63d2b23bcb8a16bb1aa00d3164479ff7..0c1bd7b4740ac9a8246212a64d4be5312c2a237c 100644 (file)
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
+#include <dm/devres.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
index e2419e18a9956e0d193db0a10aa9cd232e282cf7..cf20238782c696fe0bb6ef19872662643d8e2be9 100644 (file)
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <malloc.h>
 #include <nand.h>
+#include <dm/devres.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
index 975a91a37d2e25e7ac89c4520bb02f4e24656546..a653dfa5edfd7aad5483fb3192cf3b0ba3f742ce 100644 (file)
@@ -7,6 +7,7 @@
 #include <nand.h>
 #include <malloc.h>
 #include <mxs_nand.h>
+#include <linux/err.h>
 
 static struct mtd_info *mtd;
 static struct nand_chip nand_chip;
index aba8ac019d3e0a31d7be5babfe37c05a53577e0e..49d5e261b561caca371c6194966bdbb291647dc3 100644 (file)
@@ -34,6 +34,7 @@
 #endif
 #include <malloc.h>
 #include <watchdog.h>
+#include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
index ba785c5d53590f11b4323611c3b16cee29251821..a6e6e0ef6d75c879dd7264b909e99840c4ac87e4 100644 (file)
@@ -59,6 +59,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/bbm.h>
index afa04181681885917c90e63e3bce058b86045d03..11a22e021d09f03a8e76302edef8518c400879e7 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <dm/devres.h>
 /*#include <asm/io.h>*/
 #include <linux/types.h>
 
index c0545a4fb1590045036589a48fb0791dd5ee189d..e6aa79039131ce1e0c4c172dcaae0a8f9f87b929 100644 (file)
@@ -9,6 +9,7 @@
  *
  */
 #include <common.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/mtd/rawnand.h>
 
index fc2235c1a0ec5d82d25797e02e979ebbc3d11b7b..f3c8f7f2cb13a3fd67ddb16381de5617f362df84 100644 (file)
@@ -24,6 +24,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <div64.h>
+#include <dm/devres.h>
 
 #include <linux/errno.h>
 #include <linux/mtd/mtd.h>
index 4d2712df4c7a483243943171277e1f80dda15698..e179a780dbeac3ebdf7aaa37fba2f95259c8de1b 100644 (file)
@@ -10,6 +10,8 @@
 #include <malloc.h>
 #include <fdtdec.h>
 #include <nand.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index f3179cc21f521a5ce0de9a3c425f48c6ec18e4b2..1c212daa1dca87b7667dda82965ad56fdbaf7bef 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <nand.h>
 #include <reset.h>
+#include <linux/err.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
 
index 3ccb168d1371584dd7a99affac105731ece471ba..cd5c31e76b47c89eb8ee0c9cbb3fa779e14d6bd9 100644 (file)
@@ -28,6 +28,8 @@
 #include <fdtdec.h>
 #include <memalign.h>
 #include <nand.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 
 #include <linux/kernel.h>
 #include <linux/mtd/mtd.h>
index fba8cc056aa83dd47ded1ecd44c71de3c1ea448a..d976c19b7ac1a74baa14795a73d4b947d59cb86b 100644 (file)
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <dm/devres.h>
 #include <linux/mtd/spinand.h>
 #endif
 
index 371e2ecaa70fd85302b3f65e3f0b475f0224aae3..693bb78b87cfe287d306f9518acd6719af2a8200 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <watchdog.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/mtd/mtd.h>
 #include "linux/mtd/flashchip.h"
index d7020c190bad29d4508b25c53e34dd79a054b20f..b27e442218cd8f3eaa7f605ce182c66b888663fd 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/log2.h>
index 19defd883182193cc418a700d47065882e6dea4d..f02a06fc35d5301aeacaf23d7faf3cb75db0bc11 100644 (file)
@@ -70,6 +70,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/crc32.h>
index 42c5270c7f7338f621a69d20f9e0981df17b8ad0..7de65bc7c3ef608b75846e1e3c2bf902c2426aee 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/moduleparam.h>
 #include <linux/stringify.h>
index f3d348da833b2cff1dabe23970236eaa7a8425de..aec2613a095ffa49209ec3f98f484abac40651f0 100644 (file)
@@ -10,6 +10,7 @@
 #include "ubi.h"
 #ifndef __UBOOT__
 #include <linux/debugfs.h>
+#include <linux/err.h>
 #include <linux/uaccess.h>
 #include <linux/module.h>
 #endif
index 0c8b998e7e14b9fc1033c3e88698da5e3caa1153..8428278e215fdf3ddd431b92381d2190d7c3cf5b 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/crc32.h>
 #include <u-boot/crc.h>
index 646c778e87c5ad6894396ac229c92c78ea6ff755..a3f5e3e1a9307cda22797e78e0a9c2f45dcc03c3 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
+#include <linux/err.h>
 #include <u-boot/crc.h>
 #else
 #include <div64.h>
index 608dede49251f5a5e146be04487647c8a016fc1a..8ba22d814226411ecee68a5afbe6155c54a14c5d 100644 (file)
@@ -74,6 +74,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/err.h>
 #include <linux/slab.h>
index bcea71b1b2364f0f86121a4c51f5e2e308ce83e4..41680cdad13fd889e67759631fcbd73c2cecbdd7 100644 (file)
@@ -8,6 +8,7 @@
 /* This file mostly implements UBI kernel API functions */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/slab.h>
 #include <linux/namei.h>
index a2ff1b5769d092c2f3cb7846fea0e9e8e955768f..2114abbe7c365390a6e01758a1eaaf58c372247e 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/slab.h>
 #include <linux/export.h>
index 9c46ef669569858e4e5ae3fac9269336bfd70390..123c2f344de152597f107d22f38e22fc33f4a4df 100644 (file)
@@ -46,6 +46,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/err.h>
 #include <linux/slab.h>
index 89ca90feb342678562b2c286ebd5b4de6dca0d08..4038b7f04e0419eba6eb5ad24b5016f6ce6e2480 100644 (file)
@@ -86,6 +86,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/crc32.h>
 #include <linux/freezer.h>
index 19fc34f771cb6af93dd2b5cdcabe5e557a1ad4c1..aa33fd511b2c7f2a6be9fbe163e7238b1a8d05b4 100644 (file)
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <pci.h>
 #include <reset.h>
+#include <dm/devres.h>
 #include <linux/compiler.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
index b7bf5dbe69a8e4bc6b7333b2a6ba6aeef24c55f1..66a5f95112edb636ed39ddda0e1f629516191eb3 100644 (file)
@@ -14,6 +14,7 @@
 #include <reset.h>
 #include <syscon.h>
 #include "designware.h"
+#include <linux/err.h>
 
 #include <asm/arch/system_manager.h>
 
index 5fe850019959984133f1729a0ae4b7767f973655..505fabd3fa685dce36fd70354ed0886af6793782 100644 (file)
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <dm/devres.h>
 #include <linux/errno.h>
 #include <phy.h>
 #include <miiphy.h>
index b234b41956a81bb749766d1670fd387415f710e5..105fdc994abd5e40fb4d7752a02329ca5817bd46 100644 (file)
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <net.h>
 #include <netdev.h>
 #include <config.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <phy.h>
 #include <miiphy.h>
index a43793cd4274040fc75014c861a5614d6632ad1e..08935d9c15fccb8be842d4b1bbf2e0cbf24ae0fe 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <phy.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <malloc.h>
 
index 6d333e24eeb89d7cd14b4c30ff29f02df8c60724..64e92abb03eb0fd45de959c090938c62db0720fd 100644 (file)
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <miiphy.h>
index c3fe8e3c563f9b23380482203cf524adba430e3c..3d9d5205a1aa1ead8abd7e132fd3a3c9ac5cb158 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/system.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 
 /* Bit/mask specification */
index 433640d3e70cfdaf9ed8d32cd7d76bb2a635598b..8cfd0719074d5887149d8fcd90c590b87700c8ca 100644 (file)
@@ -12,6 +12,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 0b412aca0e85cd60a48234e40f3bda6b3086bd55..eabcb66dd07d4e63c11db4bf1290dd81e5dc3b0b 100644 (file)
@@ -14,6 +14,7 @@
 #include <pci.h>
 #include <reset.h>
 #include <asm/io.h>
+#include <dm/devres.h>
 #include <linux/iopoll.h>
 #include <linux/list.h>
 
index f7309057b9124ae6f7a185616110fa8eb98b3135..2c12fa6976d59ba5b553cfaf85d535ab74705afe 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
+#include <linux/err.h>
 
 #define REG_ISCR                       0x00
 #define REG_PHYCTL_A10                 0x04
index 9c24692629bb3ff0288a0986586f4bf23afe5720..d52f42df841d060dc40359040649c1efb43005ac 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 
index 923f2c105d678c651baa0e772a69f43bd0a16734..160a386801e902cc230e583cb39d074d9f8ed72f 100644 (file)
@@ -13,6 +13,7 @@
 #include <generic-phy.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/err.h>
 
 #define OMAP_USB2_CALIBRATE_FALSE_DISCONNECT   BIT(0)
 
index fd33062ae4e32cc4699ea327bb7931adbfc186b5..255d722ff737f357455b347d2d8a876fb61ba5a5 100644 (file)
@@ -11,6 +11,7 @@
 #include <generic-phy.h>
 #include <mapmem.h>
 #include <asm/io.h>
+#include <dm/devres.h>
 
 #include <dt-bindings/phy/phy.h>
 
index 39490124eabf2a5fdabb3ef3b11e489978cc290e..1c7db0dd0fdb5f7420edf05ae5cfba54ccedeee1 100644 (file)
@@ -18,6 +18,7 @@
 #include <power-domain.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <linux/err.h>
 
 #define CMU_R07C               0x7c
 #define CMU_MASTER_CDN_O       BIT(24)
index 0c59552bb86f9c189ac99713e889d1caf2098483..7fc36319cbad0650daee62b91812af9dcef8e742 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/arch/sys_proto.h>
 #include <syscon.h>
 #include <regmap.h>
+#include <linux/err.h>
 
 /* PLLCTRL Registers */
 #define PLL_STATUS              0x00000004
index 5bf5d8b0e24abb4c4094828155f8b5543f8c1bc5..42618cfeda7d9d4b20f4a12dc7849b67662bdb5f 100644 (file)
@@ -28,6 +28,7 @@
 #include <asm/itss.h>
 #include <dm/device-internal.h>
 #include <dt-bindings/gpio/gpio.h>
+#include <linux/err.h>
 
 #define GPIO_DW_SIZE(x)                        (sizeof(u32) * (x))
 #define PAD_CFG_OFFSET(x, dw_num)      ((x) + GPIO_DW_SIZE(dw_num))
index bd3e6ea328c75ce69f686dc5d0cc5304633acf9e..2d76c41deae3ea60103908ccf759ff4dfca58274 100644 (file)
@@ -14,6 +14,7 @@
 #include <config.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
index f197f4a142923a07bc4b8ae80c7566241f172236..da1f091aecaaf13a05cc71e7996a0afa4361a1c3 100644 (file)
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <dm/root.h>
index 69c4144365541d1481478bd991dbb02845951e9a..77a8a532027a732b11a36aa14c9df74b1c1c91d3 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <mapmem.h>
+#include <dm/devres.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <dm.h>
index 6f6ca84674ab8c6287b76b0128921e1400d022f3..5147bdc3cc87e18cf1e2708fa4db42a6ae562509 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <dm/devres.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <dm.h>
index 3a235ae5a7c3c039a16dfdfd9307b81b5000e857..e0380c349a77bfd59861e49a78425b26d8266ebb 100644 (file)
@@ -6,6 +6,7 @@
 #include <asm/io.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 5ec560ec0f49088484ac199f1227756ccf2225aa..5ee11615de26e31e2ce1264ba6ea02e7d5eb54fe 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <dm/devres.h>
 #include <dm/pinctrl.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 7f5d13e8725bf0a28406f9146d647234bb85eac7..aa118665911907fb4ed6eba3fdfb44b3cbdb6fdb 100644 (file)
@@ -13,6 +13,7 @@
 #include <clk.h>
 #include <dt-bindings/power/meson-g12a-power.h>
 #include <dt-bindings/power/meson-sm1-power.h>
+#include <linux/err.h>
 
 /* AO Offsets */
 
index bd69aea8ddd23104aabf4ef8b9d3054c6a27d62d..02f73548d6e489c3cbaa64d9617a13d05a0a5005 100644 (file)
@@ -13,6 +13,7 @@
 #include <syscon.h>
 #include <reset.h>
 #include <clk.h>
+#include <linux/err.h>
 
 enum {
        VPU_PWRC_COMPATIBLE_GX          = 0,
index 6ea4fe90038da985046de0413cf73cf8eb807314..789fc5ab64f7a96b97be9d82473cdfeccc213bf7 100644 (file)
@@ -12,6 +12,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/processor.h>
+#include <linux/err.h>
 #include <linux/iopoll.h>
 
 #include <dt-bindings/power/mt7623-power.h>
index b59af2b13b6b70d63cc6d752332761a43af0e50a..3866db589a85e1f706a4dda7f642983df271c5b4 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <power-domain-uclass.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <dt-bindings/soc/ti,sci_pm_domain.h>
 
index 88dc9f273aebed4db07729cc4a082d46c7d1bfe8..60255eeab02f72f8401d18310da03ca8eff3b0c9 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <linux/err.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
 #include <regmap.h>
index 8addee8cc30e03d39e61a5f1f378373c2e39e466..2d82a176db7c569b70927edfb27bd296a3e3f722 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/arch-rockchip/ddr_rk3368.h>
 #include <asm/arch-rockchip/sdram.h>
 #include <asm/arch-rockchip/sdram_rk3288.h>
+#include <linux/err.h>
 
 struct dram_info {
        struct ram_info info;
index d2345924452e4dbcfd915773381503c11bca6e61..bf44bebc028e20cfadf0cb68556faa126a518a66 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <elf.h>
 #include <remoteproc.h>
+#include <linux/err.h>
 
 /**
  * struct resource_table - firmware resource table header
index c25488f54d543636330b8197539608ad47305358..80e8dffdbb187cdaa26c79431002097b0f49ba8b 100644 (file)
@@ -12,6 +12,7 @@
 #include <reset.h>
 #include <syscon.h>
 #include <asm/io.h>
+#include <linux/err.h>
 
 #define RCC_GCR_HOLD_BOOT      0
 #define RCC_GCR_RELEASE_BOOT   1
index 3e35293514ed6ffa287dc601b962cbfce24da4d8..d048cf41615ef3e508c0e9537b7e1e93422b8226 100644 (file)
@@ -15,6 +15,7 @@
 #include <reset.h>
 #include <asm/io.h>
 #include <power-domain.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
 
index c5dc6b25da89126f1e311aff147fe9da18821a8a..913aca36d654e99765e35d932cbe0b21922fc5b6 100644 (file)
@@ -15,6 +15,7 @@
 #include <reset.h>
 #include <asm/io.h>
 #include <power-domain.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
 
index ae1e4b9e04f18e4d9c63019d2ba675ba89ee60b3..cecfb0ef866a5aa1fd1c70c40205b497eb68f881 100644 (file)
@@ -13,6 +13,7 @@
 #include <clk.h>
 #include <reset.h>
 #include <asm/io.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
index cfbf2af8634f1dd289308f575a97a1fb58160230..4684cbfb6a13da1f08aea1415e4d730f17b19da6 100644 (file)
@@ -12,6 +12,7 @@
 #include <regmap.h>
 #include <reset-uclass.h>
 #include <syscon.h>
+#include <linux/err.h>
 
 struct mediatek_reset_priv {
        struct regmap *regmap;
index 7b6f736f5e29dcbf0e734d68c1c85f66712c0bf2..99e3d9ad5c9e76866643d59ce336681176c1bfa2 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <reset-uclass.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
 /**
index bf1cba4124520f387f959b8177a0fb55976c2563..8e6c0a4fd0963a3b38d5617dee6f8dbbf064cfa4 100644 (file)
@@ -8,6 +8,7 @@
 #include <fdtdec.h>
 #include <reset.h>
 #include <reset-uclass.h>
+#include <dm/devres.h>
 
 static inline struct reset_ops *reset_dev_ops(struct udevice *dev)
 {
index 31f6cfe421c26e6e59b7301096a3525779b422dc..1fcbc3501545afed38a1d87721831cc035230256 100644 (file)
@@ -13,6 +13,7 @@
 #include <reset.h>
 #include <serial.h>
 #include <watchdog.h>
+#include <linux/err.h>
 #include <linux/types.h>
 #include <asm/io.h>
 
index 18530a4fd15e27b7e5e305b82d59cdc222914bd6..e63f2306f0340ae95652e6f17555a6888b90577d 100644 (file)
@@ -15,6 +15,7 @@
 #include <watchdog.h>
 #include <asm/io.h>
 #include <asm/types.h>
+#include <linux/err.h>
 
 struct mtk_serial_regs {
        u32 rbr;
@@ -454,4 +455,4 @@ static inline void _debug_uart_putc(int ch)
 
 DEBUG_UART_FUNCS
 
-#endif
\ No newline at end of file
+#endif
index a31d73766dd1def368649156f599ad85fe87f825..4d4d919358616c7f337993526a6b8cef7b8ec7c9 100644 (file)
@@ -12,6 +12,7 @@
 #include <ns16550.h>
 #include <serial.h>
 #include <clk.h>
+#include <linux/err.h>
 
 #ifndef CONFIG_SYS_NS16550_CLK
 #define CONFIG_SYS_NS16550_CLK  0
index c142ccdf3d57bb376496b88da95fc67570b9a1ec..5a02f0c8feb5b5e46b010cee702791716d8055ff 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <linux/compiler.h>
 #include <serial.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 7e486a68ffc9c067595d161af185d2c857cebb8a..c07375901bf7ddacbb99f311830c70d259f69d88 100644 (file)
@@ -14,6 +14,7 @@
 #include <asm/io.h>
 #include <linux/compiler.h>
 #include <serial.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 9fa653ad28ba97a7c76e27dad52f895056f0cadd..711ce626aae5d282e3d2fab3632a7d9a79e4a7c8 100644 (file)
@@ -8,9 +8,11 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <asm/io.h>
+#include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
 #include <smem.h>
index 17949d2d0a67a4df916af0a435ec98f5ff9b8c43..97c046b0c3f6d571013740cde0f92a81cdbc4982 100644 (file)
 #include <asm/dma-mapping.h>
 #include <asm/bitops.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/read.h>
 #include <dm/uclass.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/soc/ti/k3-navss-ringacc.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
index 7d9a54011ddacf0432efea26a4daca77de136c59..195ea5fae68c05d1fd4c8cecec24f7501031b133 100644 (file)
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
index f8b69406d4b9293e81f39f6fb4aae21f4e9f35de..0b503dd934ca6d692d841e7d2432969d290ff321 100644 (file)
@@ -13,6 +13,7 @@
 #include <reset.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/sizes.h>
 #include "cadence_qspi.h"
index cc358bd4f7ce836a2fbeaf0834e1084c0359d2f4..b8cf8dd76b66cabcc830a542dd79e606b3589d99 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/dmaengine.h>
 #include <linux/pm_runtime.h>
 #include "internals.h"
index 664b9cad79d9397e9abbc0e6ba27753a59414556..e3750b0b171f5e673db06dd308da107b87a2da7f 100644 (file)
@@ -17,6 +17,7 @@
 #include <asm/omap_gpio.h>
 #include <asm/omap_common.h>
 #include <asm/ti-common/ti-edma3.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <regmap.h>
 #include <syscon.h>
index 4cca4180126c65824bc5935fc25f87cfc6a706a3..c05d46e084c6d3f2ff69b62f1cfbddc63290d852 100644 (file)
@@ -16,6 +16,7 @@
 #include <spi.h>
 #include <ubi_uboot.h>
 #include <wait_bit.h>
+#include <linux/err.h>
 
 #define GQSPI_GFIFO_STRT_MODE_MASK     BIT(29)
 #define GQSPI_CONFIG_MODE_EN_MASK      (3 << 30)
index 890a607c4b19c3751eaae83d6fd8c1a5db4207f2..6caea3aab3919b35c5d9be7c576c9a55ab725944 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
+#include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
 /**
index d0e586f66f6ddaa4a90eaae202d82d93f8b6efb5..f64701aab3c834ad967a30f04b1ef3ca0a217e81 100644 (file)
@@ -13,6 +13,7 @@
 #include <regmap.h>
 #include <sysreset.h>
 #include <syscon.h>
+#include <linux/err.h>
 
 struct syscon_reboot_priv {
        struct regmap *regmap;
index 7f870f2f735d15975ba806c12c22cff8bb0d50e5..a7b175ee62f9332c9d0e9e5ed80788aeefdd7d3d 100644 (file)
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <tee.h>
 #include <linux/arm-smccc.h>
+#include <linux/err.h>
 #include <linux/io.h>
 
 #include "optee_smc.h"
index 21ffdbf575a18f08b708ff77f36b5d7bad1a58a8..3838601f54d1c6b166f3e8e0b466160b79c0157e 100644 (file)
@@ -9,6 +9,7 @@
 #include <timer.h>
 #include <asm/io.h>
 #include <asm/arch/timer.h>
+#include <linux/err.h>
 
 #define AST_TICK_TIMER  1
 #define AST_TMC_RELOAD_VAL  0xffffffff
index 75263c5375e065dabd218c38620aec6910dd1b51..ed48a145f2ce509a0c6f8da45a346790dc86b140 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <timer.h>
 #include <asm/io.h>
+#include <linux/err.h>
 
 #define CNT_CNTRL_RESET                BIT(4)
 
index 97a4c7485189bbb5877681268f70ea8b6cadadcb..b619200f00fa47e14498e82d6f1c78140213adcb 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <errno.h>
 #include <timer.h>
+#include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index c80f4253e4fefb309774f3340ec887b56e263339..5bd0c1e0c7f7ec615c58744e5b0d410d1526358c 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ufs.h>
+#include <linux/err.h>
 
 #include "ufs.h"
 
index 24ec3ebea178bab89a9152602d689b4c1f63265a..6e4d0cd3acc9366ba01b8e9904ff468c96400f22 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <linux/err.h>
 
 #define UFS_SS_CTRL             0x4
 #define UFS_SS_RST_N_PCS        BIT(0)
index 23306863d52b7ac1a45cbe457c0e3fae98fe3087..512c63a8f25b5c7ef0b846d3ed59c8309d077de4 100644 (file)
@@ -11,6 +11,7 @@
 #include <charset.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
 #include <malloc.h>
index 8c8e02169e811ab8bcff4594641cd43969d14a13..6f5e5af47d03d552bb1717c4904ccb6b2f3514fe 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/lists.h>
 #include <linux/kernel.h>
 #include <linux/io.h>
index 0e02b779656c3b9ea0490145db0981906d8890d2..e095760099d2bbf0ddf70f2a2327f28fa1d864b4 100644 (file)
@@ -57,6 +57,8 @@
  */
 
 #include <dm.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <linux/usb/gadget.h>
 #include <linux/compat.h>
 #include <linux/iopoll.h>
index 425d9d053ddbfdd1bf168fcef0eebee5d7bdf870..b44e7df11319db4ad8df3108349e071addf97210 100644 (file)
@@ -9,6 +9,7 @@
  *          Pawel Laszczak <pawell@cadence.com>
  */
 #include <dm.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <usb.h>
 #include <usb/xhci.h>
index 77c555e769240c2c4a0dfded17393aecb94781c9..cbf21d31dd926ccef983637814c87926c605aa24 100644 (file)
@@ -18,6 +18,8 @@
 #include <malloc.h>
 #include <dwc3-uboot.h>
 #include <asm/dma-mapping.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <linux/ioport.h>
 #include <dm.h>
 #include <generic-phy.h>
index 8b1914018297bf94e6607b8e405257cbb470f500..7ffec12fc50f24e52adc72830bf26d37f93fc3f9 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/io.h>
 #include <dm.h>
 #include <dwc3-omap-uboot.h>
+#include <dm/devres.h>
 #include <linux/usb/dwc3-omap.h>
 #include <linux/ioport.h>
 
index 4353dffb6b128cf6126dc2da470ee71514fa2f51..677607ab324e20e8565a1b7e3eb5ae7fddf8921d 100644 (file)
@@ -17,6 +17,7 @@
 #include <cpu_func.h>
 #include <malloc.h>
 #include <asm/dma-mapping.h>
+#include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/list.h>
 
index e7ea12c163a85b9df61ce0b7924e5656d52b0243..a90868216a4026aabdf2da419632f77fdda394a0 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <ti-usb-phy-uboot.h>
+#include <dm/devres.h>
 #include <linux/ioport.h>
 #include <asm/io.h>
 #include <asm/arch/sys_proto.h>
index 2a6626b44318bac582e7b7a1040f00bd57f1a7ee..13dec517f62a74ce54418774db0f0656cf68dc4a 100644 (file)
@@ -14,6 +14,8 @@
 #undef PACKET_TRACE
 
 #include <common.h>
+#include <dm/devres.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index 4a6f4271d5bf61c84eba29a07ffe744dba6b21ff..b2b279358e1d0c4d13339cb7539090248100d025 100644 (file)
@@ -7,6 +7,7 @@
  */
 #undef DEBUG
 
+#include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/usb/composite.h>
 
index 49f342eb211f321520060083f5b5cf143e4acb22..b834a1c10172f586bd6393ad68cb4b2c8e7d9836 100644 (file)
@@ -23,6 +23,7 @@
 #include <generic-phy.h>
 #include <malloc.h>
 #include <reset.h>
+#include <dm/devres.h>
 
 #include <linux/errno.h>
 #include <linux/list.h>
index c1e6506659cc9c65ceb9161e302832aaff0be41f..5250fc8b264d7eb35027f173eaaadc7706eb69a0 100644 (file)
 #include <common.h>
 #include <console.h>
 #include <g_dnl.h>
+#include <dm/devres.h>
 
 #include <linux/err.h>
 #include <linux/usb/ch9.h>
index 09c0a30b2ba029044da8a571535e4830aac6acf1..6e1e57f9fdae889e704fbeef3ec77c5ba43b702c 100644 (file)
@@ -22,6 +22,7 @@
 #include <asm/system.h>
 #include <asm/mach-types.h>
 #include <asm/unaligned.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <malloc.h>
 #include <asm/io.h>
index 8d1d90e3e39fa7f425ca414e9c8e8bf55205c57f..52384b9afb3cd5414d7476aa1255455509b27dd5 100644 (file)
@@ -13,6 +13,7 @@
  *                    usb_
  */
 
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <malloc.h>
 #include <asm/cache.h>
index 682a0703060f41d733d01f8ecab2473bd31abb5c..80ac876d89dd008c7db44b0886b5169bb4cfe23c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
 #include <reset.h>
index 233df57b4da465fc6ffeac00b3c58e44113644ae..29a702052e1d7dc3296b92405e4e6e194bfd3674 100644 (file)
@@ -7,6 +7,7 @@
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
 #include <reset.h>
index 916ea0b9555809406e93f465a5273d6238dd9a8e..7b6ec517043d24323332d83eca720e9252fd7dad 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
 #include <reset.h>
index bda099c63f4e25b8793e0e00e318bb39f80cfcad..58cde2261580d9d870aa55a57364f9a9a732fb89 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/module.h>
 #include <linux/clk.h>
index ab5e3aa9d13a3e9c120cd7dfa3fa6eb79e85528d..cc6e0a71c904c725785b6506bdf17103c12e534b 100644 (file)
@@ -65,6 +65,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/sched.h>
index 0c794b310a3a615ad475ea5a3dad2112db2aa508..d342eeba8024ad8744033c8150c0b6d449627f43 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/io.h>
 #include <linux/err.h>
index b35d33ffedf444d177f5bff915fc4e6ae6e6b555..74b645715dad8a382cf7802c0206e392f9adc00b 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/timer.h>
index 8e92ade471818ffe6a9dcea31c43889800da0df7..55ad8ead70654ff4ca46b4f21794f59c41ab36ae 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/delay.h>
index 9eb593402ea0c55c625adc09b052a38805e11995..f4d0e1fdc2ebbf876758636de805a537f48a9258 100644 (file)
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <console.h>
 #include <watchdog.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/usb/ch9.h>
 #include <linux/usb/gadget.h>
index 05059ce3cbdef1cd03a4795ba0e4070facce0941..8a45b0561342463340c58b634a4f3e68e1f8496c 100644 (file)
@@ -13,6 +13,7 @@
 #include <serial.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
+#include <linux/err.h>
 #include <linux/usb/otg.h>
 #include <asm/omap_common.h>
 #include <asm/omap_musb.h>
index 74a66e83d224b2c8214a18832bb3771946501b45..ad5ef93e01f9e3e6be98b3dec85db27d32f67cd4 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <fdtdec.h>
+#include <dm/devres.h>
 #include <linux/libfdt.h>
 #include <linux/compat.h>
 #include <linux/err.h>
index cdc3ef58ab1a6e0ee189bc850e34318c6d71962d..ecacea1dbebdf549417dd375568bdebaf2580873 100644 (file)
@@ -38,6 +38,7 @@
 #include <dm.h>
 #include <mipi_display.h>
 #include <mipi_dsi.h>
+#include <dm/devres.h>
 
 /**
  * DOC: dsi helpers
index 65891ce45c240c9d9c09c93ad7b557c5e1a5bd9c..f4444b9c3487494d20ef524967ea512d3bd354b1 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
index a5b7ba69a8b8e00fdd0e3423710fd6a5d060ff64..74ebe770a9521b13d7b515aa79592de404fb3fed 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/gpio.h>
 #include <asm/io.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru.h>
index b56c3f336c99f4f4b5d3052a54f76feb3a2d72ec..e91d4dfa7fba6080280ff6df574074a342c9645c 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/arch-rockchip/vop_rk3288.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
+#include <linux/err.h>
 #include <power/regulator.h>
 #include "rk_vop.h"
 
index 172bb14d6c8175c0b32f7066bdb9ae7004dfed88..8dc3df61aad14c88dce594740af221f0486478e0 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/arch-tegra/dc.h>
 #include "displayport.h"
 #include "sor.h"
+#include <linux/err.h>
 
 #define DEBUG_SOR 0
 
index a67b35412240f36ce95baedcb4b6a232359f23dc..60ece133abe51eeb9bce6c03c95c682a46e678c9 100644 (file)
@@ -13,6 +13,7 @@
 #include <virtio.h>
 #include <virtio_ring.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include "virtio_mmio.h"
 
index 202e5ab1d31bea62541ce7e5707dad3b29a4d4db..d9be2601bbab450afcb68f3331ed4ce1708a7065 100644 (file)
@@ -13,6 +13,7 @@
 #include <virtio_ring.h>
 #include <dm/device.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include "virtio_pci.h"
 
index da76aea8d178401a498fda0dcae9081695855f52..4673f4ab550a68d33bd26b8651e7bb7b14a0e980 100644 (file)
@@ -13,6 +13,7 @@
 #include <virtio_ring.h>
 #include <dm/device.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/io.h>
 #include "virtio_pci.h"
 
index 2addb1ebc5e2f30fea82dfff0979bde6c17fe016..61f6a9600831974709a420c8fb784d1be9379d6f 100644 (file)
@@ -11,6 +11,7 @@
 #include <virtio.h>
 #include <virtio_ring.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/io.h>
 
 struct virtio_sandbox_priv {
index d344d54aee828fdeb2ff72dbe79ec557fc998d52..fe2f6be5a74dbe1c7326c42a4f602e3c6eeff93c 100644 (file)
@@ -9,6 +9,7 @@
 #include <wdt.h>
 #include <asm/io.h>
 #include <asm/arch/wdt.h>
+#include <linux/err.h>
 
 #define WDT_AST2500    2500
 #define WDT_AST2400    2400
index 6a608b6371fdacc5eacfeae1e92dcfcb5e7232d0..13952e1e97a0b4198c717878d7589778013865c4 100644 (file)
@@ -11,6 +11,7 @@
 #include <wdt.h>
 #include <clk.h>
 #include <div64.h>
+#include <linux/err.h>
 #include <linux/io.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f1e781e4e6ecea10841ad8a9653d1662a8e47a7d..ca3ccbe76cbad1ea35b8d74ee9d94eab6e303da3 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/bitops.h>
 #include <watchdog.h>
 #include <wdt.h>
+#include <linux/err.h>
 
 #define WDTLOAD                        0x000
 #define WDTCONTROL             0x008
index 929c8e60d37cc3e4eebbe4a3a8d467968f123922..5580764da7ce8d88fe1a6f8c65af28668f94447b 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <dm.h>
 #include <wdt.h>
+#include <linux/err.h>
 #include <linux/io.h>
 
 #define XWT_CSR0_WRS_MASK      0x00000008 /* Reset status Mask */
index 782aa9a2509fda82d65f42b811aca7ce64576365..6835f86fec738ead9e737492b827565b35b1fbec 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <hexdump.h>
+#include <dm/devres.h>
 
 #ifndef __UBOOT__
 #include <linux/module.h>
index 42f22a487e113f68c868427156f51637e90d95d9..f923d076525f19b4c32ce895ced911da3bc52ac6 100644 (file)
@@ -41,6 +41,7 @@
  * good, and GC takes extra care when moving them.
  */
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/pagemap.h>
 #include <linux/list_sort.h>
index 7fe94e1093a44bd26d2672df3457ef2f833d61ba..8148055f6781f17489fe82a737a07c7564c2ff0a 100644 (file)
@@ -59,6 +59,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
 #include <u-boot/crc.h>
index 331a891a576d3a3323ddbdc13affd6ebc839ed50..5cbb8aa1b2e91fee12e70c4fb7b387e5ad9bcd64 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/err.h>
 #endif
 #include "ubifs.h"
index c0076bde7428da3b3b51ecfee6d1e4191f018f2f..ebfb1d4dd78e738e8daff0e70534881233c87881 100644 (file)
@@ -33,6 +33,7 @@
 
 #include "ubifs.h"
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc16.h>
 #include <linux/math64.h>
 #include <linux/slab.h>
index 260216205d9144f5784a389d1c65cef9be1f5770..aa5956c52e8d812bd1fd50988dc63b1e5456bad5 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc16.h>
 #include <linux/slab.h>
 #include <linux/random.h>
index 5654d45dfbd970fbebe718edcbd83c44bbad7077..2740aaee8bec2a8e5ae2e195fd8c99056941d552 100644 (file)
@@ -12,6 +12,7 @@
 
 #include "ubifs.h"
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #include <ubi_uboot.h>
index c807ff1beb96dd9a7084228679cc7ae0c7c6ca12..a67b3eec93a69bd8add879eb355db493d6f353e3 100644 (file)
@@ -7,6 +7,7 @@
  * Author: Adrian Hunter
  */
 
+#include <dm/devres.h>
 #include <linux/err.h>
 #include "ubifs.h"
 
index b568012fec30bfa90205ce57d8776e43e7856293..3388efe2b78ed340d8663402dc69f66d53ecd329 100644 (file)
@@ -36,6 +36,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
 #include <u-boot/crc.h>
index 4064157f15497bb4d31389bb2660bf970f8257e0..3a9fa4130e0ea85101ae7e1b2ad69802a7a7100a 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
 #endif
index 52db611d1c7bf60301b8fb743f8672518c4c711a..599e1a35fbf42b776c30847386bc16b3f7b518a1 100644 (file)
@@ -16,6 +16,7 @@
 
 #include "ubifs.h"
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/slab.h>
 #include <linux/random.h>
 #include <linux/math64.h>
index 8ff668eec6adac9cf35e2938f5507585a568fe28..876a6ee6616b0eed2d7ff3d7371a528ed9fbf715 100644 (file)
@@ -17,6 +17,7 @@
 
 #ifdef __UBOOT__
 #include <hexdump.h>
+#include <dm/devres.h>
 #include <linux/err.h>
 #endif
 #include "ubifs.h"
index 9939b4404f0878c0fc453258c4d2de51778b327d..b38513660b6a2ab757c22b6be1da8b27b922f540 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/slab.h>
 #include <linux/module.h>
index 8afc08ad7d701924f9ba1a396ed53e5b4906abf7..fc6fdaff8d19d37203e549134f309ca469902cf9 100644 (file)
@@ -19,6 +19,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/crc32.h>
 #include <linux/slab.h>
 #include <u-boot/crc.h>
index b8ea7e9ddb67b5aa7f99fabee8ae30b381ae2b66..dfa9e91903ddbbb7b41421e87c4a05998ea814c3 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/err.h>
 #endif
 #include "ubifs.h"
index 1ffdfe0d9089ff5cc0232a74b9b3b531a9f9cb70..388451512a3d2a67dd854534afef7616dc696b6b 100644 (file)
@@ -16,6 +16,7 @@
 #include <gzip.h>
 #include <memalign.h>
 #include "ubifs.h"
+#include <dm/devres.h>
 #include <u-boot/zlib.h>
 
 #include <linux/compat.h>
index 611061fb45ca14960cb261629912e9ada0ef168b..961dc22ef3d8fa7fde7af1c444216f6fdb614235 100644 (file)
@@ -15,6 +15,7 @@
 #include "yaffs_guts.h"
 #include "yaffs_trace.h"
 #include "yportenv.h"
+#include <dm/devres.h>
 
 /*
  * Each entry in yaffs_tnode_list and yaffs_obj_list hold blocks
index 997a618aee86c80435e722a22e87a58f7bc9b620..628f02bb48d25a15cc4dc64b7a1f993f42ea5599 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "yaffs_checkptrw.h"
 #include "yaffs_getblockinfo.h"
+#include <dm/devres.h>
 
 static int yaffs2_checkpt_space_ok(struct yaffs_dev *dev)
 {
index c8b27adda91dee49989013366bc3de98bc42868d..e13a73298b4ccffc385dd1cb730001c5482cc1fd 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "yportenv.h"
 #include "yaffs_trace.h"
+#include <dm/devres.h>
 
 #include "yaffs_guts.h"
 #include "yaffs_getblockinfo.h"
index e9e1b5d85776939c20e37e272343c9eb44f1bf1a..4f9449a8447237af72fe7129dbfae6a35edd8296 100644 (file)
@@ -28,6 +28,7 @@
 #include "yaffs_nand.h"
 #include "yaffs_getblockinfo.h"
 #include "yaffs_bitmap.h"
+#include <dm/devres.h>
 
 /*
  * The summary is built up in an array of summary tags.
index 357d8f75dd8b3b22e30a50965d2d4e2bfbc83d7a..8c176b982fa28e53d2d9aa0e881a0830c8f462c4 100644 (file)
@@ -18,6 +18,7 @@
 #include "yaffs_getblockinfo.h"
 #include "yaffs_nand.h"
 #include "yaffs_attribs.h"
+#include <dm/devres.h>
 
 int yaffs1_scan(struct yaffs_dev *dev)
 {
index f76dcaeeb18c5027f1bccd3be136319589a6112d..14d497eb99b04755eff4ec6bb377d0a4d8567419 100644 (file)
@@ -21,6 +21,7 @@
 #include "yaffs_verify.h"
 #include "yaffs_attribs.h"
 #include "yaffs_summary.h"
+#include <dm/devres.h>
 
 /*
  * Checkpoints are really no benefit on very small partitions.
index 47abc6bedae7bf85c7eaea34dfdf1705065f297b..510faaeed14966ae1c12cd392778f66bbbb129e9 100644 (file)
@@ -17,6 +17,7 @@
 #include "yaffscfg.h"
 #include "yportenv.h"
 #include "yaffs_trace.h"
+#include <dm/devres.h>
 
 #define YAFFSFS_MAX_SYMLINK_DEREFERENCES 5
 
index 517ae7fc900a155cf69edc0e1818f49c6789456d..2d8b716ef5e951fd1f5501170762526250e6f353 100644 (file)
@@ -803,8 +803,6 @@ static inline bool device_is_on_pci_bus(const struct udevice *dev)
  */
 int dm_scan_fdt_dev(struct udevice *dev);
 
-#include <dm/devres.h>
-
 /*
  * REVISIT:
  * remove the following after resolving conflicts with <linux/compat.h>
index 9c6919605454bf12839be16f93697f493c35dade..17bb1ee8dad1b9b7ce377e5f12258540ac450c01 100644 (file)
 #ifndef _DM_DEVRES_H
 #define _DM_DEVRES_H
 
+#include <linux/compat.h>
+
+struct udevice;
+
 /* device resource management */
 typedef void (*dr_release_t)(struct udevice *dev, void *res);
 typedef int (*dr_match_t)(struct udevice *dev, void *res, void *match_data);
index c4fac77d611456b116b663b0553d4325c6861fda..86709cc8754719b066f4b2e95bf3404a17d97d6b 100644 (file)
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -56,6 +56,7 @@
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <ubi_uboot.h>
+#include <dm/devres.h>
 
 #include <linux/bitops.h>
 #else
index e04666c0801df7996e11ff3adcd809e858200ac2..7aa55092ac7062565a879408846d69df8e52f676 100644 (file)
@@ -7,6 +7,7 @@
  * Written by David Howells (dhowells@redhat.com)
  */
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <keys/asymmetric-subtype.h>
 #include <keys/asymmetric-parser.h>
 #endif
@@ -14,6 +15,7 @@
 #ifdef __UBOOT__
 #include <linux/compat.h>
 #include <linux/ctype.h>
+#include <linux/err.h>
 #include <linux/string.h>
 #else
 #include <linux/seq_file.h>
index bf9e7e888f6b5b0550a17a5dc386c455fd867416..f5dda1179f8aa957eceb53b1ca9b57be9a271565 100644 (file)
@@ -7,6 +7,7 @@
 
 #define pr_fmt(fmt) "PKCS7: "fmt
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/bitops.h>
 #include <linux/compat.h>
 #endif
index 634377472f401b9352426ea0baa40e66e9dfd98f..8b4821767aaacdbfa8087c0f8a04e0a893ddc705 100644 (file)
@@ -9,7 +9,9 @@
 
 #define pr_fmt(fmt) "PKEY: "fmt
 #ifdef __UBOOT__
+#include <dm/devres.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #else
 #include <linux/module.h>
 #include <linux/export.h>
index e6d2a426a0bcea89bfa10e27a776bafcbafc38cb..4e41cffd2301dc1d906556b447e297fd51393dce 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #define pr_fmt(fmt) "X.509: "fmt
+#include <dm/devres.h>
 #include <linux/kernel.h>
 #ifndef __UBOOT__
 #include <linux/export.h>
index 04bdb672b4962ac4cc75381c4f29d9674d6e7ff9..676c0df17410740957b022e837402950bed36ff8 100644 (file)
@@ -8,7 +8,9 @@
 #define pr_fmt(fmt) "X.509: "fmt
 #ifdef __UBOOT__
 #include <common.h>
+#include <dm/devres.h>
 #include <linux/compat.h>
+#include <linux/err.h>
 #include <linux/errno.h>
 #else
 #include <linux/module.h>
index e841da53ee698a508fc419a8486a0144d88bf8b6..beb7273fd30d955c4d247bb59c30ee9e695a2318 100644 (file)
@@ -1,4 +1,5 @@
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>
index e7331897de8400d0fa9f6c22895a195caed37c1b..cbd0972c9b48781a8cc063a6e4a4872a3b27be03 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/test.h>
 #include <dm/uclass-internal.h>
 #include <test/ut.h>
index 6fd1f20656bc4df3b6136aaeffbf5cb7b251e09a..b21f66732b9d14cb1f93ab1d5d1a166bd8a0bea7 100644 (file)
@@ -10,6 +10,7 @@
 #include <syscon.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/err.h>
 #include <test/ut.h>
 
 /* Base test of register maps */
index 0ff9da7ec630bbe70f633d6a9dddc3977c648433..f1021f374b61e492cfc821c82c948f4d76f8b61c 100644 (file)
@@ -9,6 +9,7 @@
 #include <regmap.h>
 #include <asm/test.h>
 #include <dm/test.h>
+#include <linux/err.h>
 #include <test/ut.h>
 
 /* Base test of system controllers */
index cd65e42a88f05a2e458ec2e273cc62d458119440..f54db759b65c74872bc417b5b43bde9d0724fe9f 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm/test.h>
 #include <dm/root.h>
 #include <dm/device-internal.h>
+#include <dm/devres.h>
 #include <dm/uclass-internal.h>
 #include <dm/util.h>
 #include <dm/lists.h>