Преглед изворни кода

dm: core: Require users of devres to include the header

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>
Simon Glass пре 4 година
родитељ
комит
61b29b8268
100 измењених фајлова са 120 додато и 2 уклоњено
  1. 1 0
      arch/arm/mach-aspeed/ast2500/clk_ast2500.c
  2. 1 0
      arch/arm/mach-imx/cmd_nandbcb.c
  3. 1 0
      arch/arm/mach-meson/board-info.c
  4. 1 0
      arch/arm/mach-meson/sm.c
  5. 1 0
      arch/arm/mach-rockchip/px30/clk_px30.c
  6. 1 0
      arch/arm/mach-rockchip/rk3036/clk_rk3036.c
  7. 1 0
      arch/arm/mach-rockchip/rk3128/clk_rk3128.c
  8. 1 0
      arch/arm/mach-rockchip/rk3188/clk_rk3188.c
  9. 1 0
      arch/arm/mach-rockchip/rk3188/rk3188.c
  10. 1 0
      arch/arm/mach-rockchip/rk322x/clk_rk322x.c
  11. 1 0
      arch/arm/mach-rockchip/rk3288/clk_rk3288.c
  12. 1 0
      arch/arm/mach-rockchip/rk3288/rk3288.c
  13. 1 0
      arch/arm/mach-rockchip/rk3308/clk_rk3308.c
  14. 1 0
      arch/arm/mach-rockchip/rk3328/clk_rk3328.c
  15. 1 0
      arch/arm/mach-rockchip/rk3368/clk_rk3368.c
  16. 1 0
      arch/arm/mach-rockchip/rk3399/clk_rk3399.c
  17. 1 0
      arch/arm/mach-rockchip/rv1108/clk_rv1108.c
  18. 1 0
      arch/arm/mach-stm32mp/pwr_regulator.c
  19. 1 0
      arch/riscv/lib/andes_plic.c
  20. 1 0
      arch/riscv/lib/andes_plmt.c
  21. 1 0
      arch/riscv/lib/sifive_clint.c
  22. 1 0
      board/google/veyron/veyron.c
  23. 1 0
      board/st/stm32mp1/stm32mp1.c
  24. 1 0
      cmd/gpio.c
  25. 1 0
      cmd/gpt.c
  26. 2 0
      cmd/mtd.c
  27. 1 0
      cmd/ubi.c
  28. 1 0
      drivers/adc/rockchip-saradc.c
  29. 1 0
      drivers/block/blk-uclass.c
  30. 1 0
      drivers/clk/altera/clk-arria10.c
  31. 1 0
      drivers/clk/aspeed/clk_ast2500.c
  32. 1 0
      drivers/clk/at91/clk-generated.c
  33. 1 0
      drivers/clk/at91/clk-usb.c
  34. 2 0
      drivers/clk/clk-composite.c
  35. 2 0
      drivers/clk/clk-divider.c
  36. 2 0
      drivers/clk/clk-fixed-factor.c
  37. 2 0
      drivers/clk/clk-gate.c
  38. 2 0
      drivers/clk/clk-mux.c
  39. 1 0
      drivers/clk/clk-ti-sci.c
  40. 3 1
      drivers/clk/clk-uclass.c
  41. 1 0
      drivers/clk/clk_fixed_factor.c
  42. 2 0
      drivers/clk/clk_sandbox_ccf.c
  43. 1 0
      drivers/clk/clk_sandbox_test.c
  44. 1 0
      drivers/clk/clk_versal.c
  45. 1 0
      drivers/clk/clk_zynqmp.c
  46. 2 0
      drivers/clk/imx/clk-composite-8m.c
  47. 2 0
      drivers/clk/imx/clk-gate2.c
  48. 2 0
      drivers/clk/imx/clk-pfd.c
  49. 2 0
      drivers/clk/imx/clk-pll14xx.c
  50. 2 0
      drivers/clk/imx/clk-pllv3.c
  51. 1 0
      drivers/clk/meson/axg.c
  52. 1 0
      drivers/clk/meson/g12a.c
  53. 1 0
      drivers/clk/meson/gxbb.c
  54. 1 0
      drivers/clk/rockchip/clk_rk3188.c
  55. 1 0
      drivers/clk/rockchip/clk_rk3288.c
  56. 1 0
      drivers/clk/sifive/fu540-prci.c
  57. 1 0
      drivers/core/devres.c
  58. 1 0
      drivers/dfu/dfu_mtd.c
  59. 2 1
      drivers/dma/ti/k3-udma.c
  60. 1 0
      drivers/firmware/ti_sci.c
  61. 1 0
      drivers/gpio/dwapb_gpio.c
  62. 1 0
      drivers/gpio/mscc_sgpio.c
  63. 1 0
      drivers/i2c/ast_i2c.c
  64. 1 0
      drivers/i2c/designware_i2c.c
  65. 1 0
      drivers/i2c/meson_i2c.c
  66. 1 0
      drivers/i2c/muxes/i2c-mux-gpio.c
  67. 1 0
      drivers/i2c/tegra_i2c.c
  68. 1 0
      drivers/misc/microchip_flexcom.c
  69. 1 0
      drivers/misc/tegra186_bpmp.c
  70. 1 0
      drivers/mmc/am654_sdhci.c
  71. 1 0
      drivers/mmc/aspeed_sdhci.c
  72. 1 0
      drivers/mmc/fsl_esdhc_imx.c
  73. 2 0
      drivers/mmc/omap_hsmmc.c
  74. 1 0
      drivers/mmc/rockchip_sdhci.c
  75. 1 0
      drivers/mmc/tegra_mmc.c
  76. 1 0
      drivers/mmc/zynq_sdhci.c
  77. 1 0
      drivers/mtd/mtd_uboot.c
  78. 1 0
      drivers/mtd/mtdconcat.c
  79. 1 0
      drivers/mtd/mtdcore.c
  80. 1 0
      drivers/mtd/mtdpart.c
  81. 1 0
      drivers/mtd/nand/bbt.c
  82. 1 0
      drivers/mtd/nand/raw/atmel_nand.c
  83. 1 0
      drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c
  84. 1 0
      drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c
  85. 1 0
      drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c
  86. 2 0
      drivers/mtd/nand/raw/brcmnand/brcmnand.c
  87. 1 0
      drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c
  88. 2 0
      drivers/mtd/nand/raw/denali.c
  89. 1 0
      drivers/mtd/nand/raw/fsl_elbc_nand.c
  90. 1 0
      drivers/mtd/nand/raw/fsl_ifc_nand.c
  91. 1 0
      drivers/mtd/nand/raw/mxs_nand_spl.c
  92. 1 0
      drivers/mtd/nand/raw/nand_base.c
  93. 1 0
      drivers/mtd/nand/raw/nand_bbt.c
  94. 1 0
      drivers/mtd/nand/raw/nand_bch.c
  95. 1 0
      drivers/mtd/nand/raw/nand_timings.c
  96. 1 0
      drivers/mtd/nand/raw/nand_util.c
  97. 2 0
      drivers/mtd/nand/raw/pxa3xx_nand.c
  98. 1 0
      drivers/mtd/nand/raw/stm32_fmc2_nand.c
  99. 2 0
      drivers/mtd/nand/raw/sunxi_nand.c
  100. 1 0
      drivers/mtd/nand/spi/core.c

+ 1 - 0
arch/arm/mach-aspeed/ast2500/clk_ast2500.c

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

+ 1 - 0
arch/arm/mach-imx/cmd_nandbcb.c

@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <nand.h>
+#include <dm/devres.h>
 
 #include <asm/io.h>
 #include <jffs2/jffs2.h>

+ 1 - 0
arch/arm/mach-meson/board-info.c

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

+ 1 - 0
arch/arm/mach-meson/sm.c

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

+ 1 - 0
arch/arm/mach-rockchip/px30/clk_px30.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3036/clk_rk3036.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3128/clk_rk3128.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3188/clk_rk3188.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3188/rk3188.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk322x/clk_rk322x.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3288/clk_rk3288.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3288/rk3288.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3308/clk_rk3308.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3328/clk_rk3328.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3368/clk_rk3368.c

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

+ 1 - 0
arch/arm/mach-rockchip/rk3399/clk_rk3399.c

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

+ 1 - 0
arch/arm/mach-rockchip/rv1108/clk_rv1108.c

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

+ 1 - 0
arch/arm/mach-stm32mp/pwr_regulator.c

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

+ 1 - 0
arch/riscv/lib/andes_plic.c

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

+ 1 - 0
arch/riscv/lib/andes_plmt.c

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

+ 1 - 0
arch/riscv/lib/sifive_clint.c

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

+ 1 - 0
board/google/veyron/veyron.c

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

+ 1 - 0
board/st/stm32mp1/stm32mp1.c

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

+ 1 - 0
cmd/gpio.c

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

+ 1 - 0
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>
 

+ 2 - 0
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>
 

+ 1 - 0
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>

+ 1 - 0
drivers/adc/rockchip-saradc.c

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

+ 1 - 0
drivers/block/blk-uclass.c

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

+ 1 - 0
drivers/clk/altera/clk-arria10.c

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

+ 1 - 0
drivers/clk/aspeed/clk_ast2500.c

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

+ 1 - 0
drivers/clk/at91/clk-generated.c

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

+ 1 - 0
drivers/clk/at91/clk-usb.c

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

+ 2 - 0
drivers/clk/clk-composite.c

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

+ 2 - 0
drivers/clk/clk-divider.c

@@ -14,10 +14,12 @@
 #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>

+ 2 - 0
drivers/clk/clk-fixed-factor.c

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

+ 2 - 0
drivers/clk/clk-gate.c

@@ -12,9 +12,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_GATE "clk_gate"
 

+ 2 - 0
drivers/clk/clk-mux.c

@@ -26,9 +26,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_CCF_MUX "ccf_clk_mux"
 

+ 1 - 0
drivers/clk/clk-ti-sci.c

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

+ 3 - 1
drivers/clk/clk-uclass.c

@@ -10,10 +10,12 @@
 #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)
 {

+ 1 - 0
drivers/clk/clk_fixed_factor.c

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

+ 2 - 0
drivers/clk/clk_sandbox_ccf.c

@@ -11,8 +11,10 @@
 #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

+ 1 - 0
drivers/clk/clk_sandbox_test.c

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

+ 1 - 0
drivers/clk/clk_versal.c

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

+ 1 - 0
drivers/clk/clk_zynqmp.c

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

+ 2 - 0
drivers/clk/imx/clk-composite-8m.c

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

+ 2 - 0
drivers/clk/imx/clk-gate2.c

@@ -19,9 +19,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_GATE2 "imx_clk_gate2"
 

+ 2 - 0
drivers/clk/imx/clk-pfd.c

@@ -19,10 +19,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_PFD "imx_clk_pfd"
 

+ 2 - 0
drivers/clk/imx/clk-pll14xx.c

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

+ 2 - 0
drivers/clk/imx/clk-pllv3.c

@@ -10,9 +10,11 @@
 #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"

+ 1 - 0
drivers/clk/meson/axg.c

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

+ 1 - 0
drivers/clk/meson/g12a.c

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

+ 1 - 0
drivers/clk/meson/gxbb.c

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

+ 1 - 0
drivers/clk/rockchip/clk_rk3188.c

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

+ 1 - 0
drivers/clk/rockchip/clk_rk3288.c

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

+ 1 - 0
drivers/clk/sifive/fu540-prci.c

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

+ 1 - 0
drivers/core/devres.c

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

+ 1 - 0
drivers/dfu/dfu_mtd.c

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

+ 2 - 1
drivers/dma/ti/k3-udma.c

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

+ 1 - 0
drivers/firmware/ti_sci.c

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

+ 1 - 0
drivers/gpio/dwapb_gpio.c

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

+ 1 - 0
drivers/gpio/mscc_sgpio.c

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

+ 1 - 0
drivers/i2c/ast_i2c.c

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

+ 1 - 0
drivers/i2c/designware_i2c.c

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

+ 1 - 0
drivers/i2c/meson_i2c.c

@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <linux/err.h>
 
 #define I2C_TIMEOUT_MS		100
 

+ 1 - 0
drivers/i2c/muxes/i2c-mux-gpio.c

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

+ 1 - 0
drivers/i2c/tegra_i2c.c

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

+ 1 - 0
drivers/misc/microchip_flexcom.c

@@ -9,6 +9,7 @@
 #include <errno.h>
 #include <misc.h>
 #include <asm/io.h>
+#include <linux/err.h>
 
 struct microchip_flexcom_regs {
 	u32 cr;

+ 1 - 0
drivers/misc/tegra186_bpmp.c

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

+ 1 - 0
drivers/mmc/am654_sdhci.c

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

+ 1 - 0
drivers/mmc/aspeed_sdhci.c

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

+ 1 - 0
drivers/mmc/fsl_esdhc_imx.c

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

+ 2 - 0
drivers/mmc/omap_hsmmc.c

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

+ 1 - 0
drivers/mmc/rockchip_sdhci.c

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

+ 1 - 0
drivers/mmc/tegra_mmc.c

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

+ 1 - 0
drivers/mmc/zynq_sdhci.c

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

+ 1 - 0
drivers/mtd/mtd_uboot.c

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

+ 1 - 0
drivers/mtd/mtdconcat.c

@@ -10,6 +10,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/module.h>
 #include <linux/slab.h>

+ 1 - 0
drivers/mtd/mtdcore.c

@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
 #include <linux/ptrace.h>

+ 1 - 0
drivers/mtd/mtdpart.c

@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/types.h>
 #include <linux/kernel.h>

+ 1 - 0
drivers/mtd/nand/bbt.c

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

+ 1 - 0
drivers/mtd/nand/raw/atmel_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/brcmnand/bcm63158_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/brcmnand/bcm6858_nand.c

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

+ 2 - 0
drivers/mtd/nand/raw/brcmnand/brcmnand.c

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

+ 1 - 0
drivers/mtd/nand/raw/brcmnand/brcmnand_compat.c

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

+ 2 - 0
drivers/mtd/nand/raw/denali.c

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

+ 1 - 0
drivers/mtd/nand/raw/fsl_elbc_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/fsl_ifc_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/mxs_nand_spl.c

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

+ 1 - 0
drivers/mtd/nand/raw/nand_base.c

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

+ 1 - 0
drivers/mtd/nand/raw/nand_bbt.c

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

+ 1 - 0
drivers/mtd/nand/raw/nand_bch.c

@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <dm/devres.h>
 /*#include <asm/io.h>*/
 #include <linux/types.h>
 

+ 1 - 0
drivers/mtd/nand/raw/nand_timings.c

@@ -9,6 +9,7 @@
  *
  */
 #include <common.h>
+#include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/mtd/rawnand.h>
 

+ 1 - 0
drivers/mtd/nand/raw/nand_util.c

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

+ 2 - 0
drivers/mtd/nand/raw/pxa3xx_nand.c

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

+ 1 - 0
drivers/mtd/nand/raw/stm32_fmc2_nand.c

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

+ 2 - 0
drivers/mtd/nand/raw/sunxi_nand.c

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

+ 1 - 0
drivers/mtd/nand/spi/core.c

@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <dm/devres.h>
 #include <linux/mtd/spinand.h>
 #endif
 

Неке датотеке нису приказане због велике количине промена