]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dm: core: Create a new header file for 'compat' features
authorSimon Glass <sjg@chromium.org>
Mon, 3 Feb 2020 14:36:16 +0000 (07:36 -0700)
committerSimon Glass <sjg@chromium.org>
Thu, 6 Feb 2020 02:33:46 +0000 (19:33 -0700)
At present dm/device.h includes the linux-compatible features. This
requires including linux/compat.h which in turn includes a lot of headers.
One of these is malloc.h which we thus end up including in every file in
U-Boot. Apart from the inefficiency of this, it is problematic for sandbox
which needs to use the system malloc() in some files.

Move the compatibility features into a separate header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
460 files changed:
arch/arm/mach-imx/cmd_nandbcb.c
arch/arm/mach-imx/imx8/image.c
arch/arm/mach-mvebu/mbus.c
arch/arm/mach-rockchip/rk3288/rk3288.c
arch/arm/mach-rockchip/rk3308/rk3308.c
arch/arm/mach-socfpga/clock_manager_agilex.c
arch/arm/mach-socfpga/clock_manager_arria10.c
arch/arm/mach-stm32mp/pwr_regulator.c
arch/arm/mach-tegra/cboot.c
arch/arm/mach-zynq/clk.c
arch/arm/mach-zynq/timer.c
arch/mips/mach-mtmips/cpu.c
arch/mips/mach-pic32/cpu.c
arch/sandbox/cpu/cpu.c
arch/x86/cpu/apollolake/fsp_s.c
arch/x86/cpu/apollolake/spl.c
arch/x86/cpu/apollolake/uart.c
arch/x86/cpu/intel_common/itss.c
arch/x86/cpu/qemu/e820.c
arch/x86/cpu/qfw_cpu.c
arch/x86/lib/coreboot_table.c
arch/x86/lib/fsp1/fsp_common.c
arch/x86/lib/mrccache.c
arch/x86/lib/tables.c
board/compulab/common/common.c
board/corscience/tricorder/tricorder.c
board/gardena/smart-gateway-mt7688/board.c
board/ge/common/vpd_reader.c
board/isee/igep003x/board.c
board/isee/igep00x0/igep00x0.c
board/menlo/m53menlo/m53menlo.c
board/microchip/pic32mzda/pic32mzda.c
board/overo/overo.c
board/siemens/common/board.c
board/siemens/pxm2/board.c
board/siemens/rut/board.c
board/st/stm32mp1/stm32mp1.c
board/synopsys/hsdk/clk-lib.c
board/technexion/tao3530/tao3530.c
board/ti/am335x/board.c
board/ti/am57xx/board.c
board/timll/devkit8000/devkit8000.c
cmd/bootefi.c
cmd/gpio.c
cmd/host.c
cmd/rng.c
cmd/tpm-common.c
cmd/ubi.c
cmd/usb_mass_storage.c
cmd/ximg.c
common/android_ab.c
common/autoboot.c
common/image-fdt.c
common/image.c
common/usb.c
common/usb_hub.c
drivers/adc/stm32-adc-core.c
drivers/adc/stm32-adc.c
drivers/axi/sandbox_store.c
drivers/block/blk-uclass.c
drivers/block/sandbox.c
drivers/clk/altera/clk-arria10.c
drivers/clk/at91/clk-generated.c
drivers/clk/at91/clk-h32mx.c
drivers/clk/at91/clk-peripheral.c
drivers/clk/clk-cdce9xx.c
drivers/clk/clk-ti-sci.c
drivers/clk/clk-uclass.c
drivers/clk/clk_sandbox.c
drivers/clk/clk_sandbox_ccf.c
drivers/clk/clk_sandbox_test.c
drivers/clk/clk_versal.c
drivers/clk/clk_vexpress_osc.c
drivers/clk/clk_zynq.c
drivers/clk/clk_zynqmp.c
drivers/clk/imx/clk-imx8.c
drivers/clk/mvebu/armada-37xx-periph.c
drivers/clk/mvebu/armada-37xx-tbg.c
drivers/clk/rockchip/clk_px30.c
drivers/clk/rockchip/clk_rk3036.c
drivers/clk/rockchip/clk_rk3128.c
drivers/clk/rockchip/clk_rk3188.c
drivers/clk/rockchip/clk_rk322x.c
drivers/clk/rockchip/clk_rk3288.c
drivers/clk/rockchip/clk_rk3308.c
drivers/clk/rockchip/clk_rk3328.c
drivers/clk/rockchip/clk_rk3368.c
drivers/clk/rockchip/clk_rk3399.c
drivers/clk/rockchip/clk_rv1108.c
drivers/clk/tegra/tegra-car-clk.c
drivers/clk/uniphier/clk-uniphier-core.c
drivers/core/devres.c
drivers/core/of_access.c
drivers/core/ofnode.c
drivers/core/syscon-uclass.c
drivers/ddr/altera/sdram_gen5.c
drivers/ddr/altera/sdram_soc64.c
drivers/dma/bcm6348-iudma.c
drivers/dma/dma-uclass.c
drivers/dma/sandbox-dma-test.c
drivers/dma/ti/k3-udma.c
drivers/firmware/ti_sci.c
drivers/fpga/fpga.c
drivers/gpio/74x164_gpio.c
drivers/gpio/adi_gpio2.c
drivers/gpio/at91_gpio.c
drivers/gpio/atmel_pio4.c
drivers/gpio/da8xx_gpio.c
drivers/gpio/dwapb_gpio.c
drivers/gpio/gpio-rcar.c
drivers/gpio/kona_gpio.c
drivers/gpio/mpc83xx_gpio.c
drivers/gpio/mscc_sgpio.c
drivers/gpio/mvgpio.c
drivers/gpio/mxs_gpio.c
drivers/gpio/pca953x_gpio.c
drivers/gpio/pca9698.c
drivers/gpio/sh_pfc.c
drivers/gpio/spear_gpio.c
drivers/gpio/stm32_gpio.c
drivers/hwspinlock/hwspinlock-uclass.c
drivers/hwspinlock/stm32_hwspinlock.c
drivers/i2c/at91_i2c.c
drivers/i2c/designware_i2c.c
drivers/i2c/i2c-uniphier-f.c
drivers/i2c/i2c-uniphier.c
drivers/i2c/imx_lpi2c.c
drivers/i2c/muxes/i2c-arb-gpio-challenge.c
drivers/i2c/muxes/i2c-mux-gpio.c
drivers/i2c/muxes/i2c-mux-uclass.c
drivers/i2c/muxes/pca954x.c
drivers/i2c/mxc_i2c.c
drivers/i2c/rcar_i2c.c
drivers/i2c/stm32f7_i2c.c
drivers/i2c/xilinx_xiic.c
drivers/led/led_gpio.c
drivers/mailbox/k3-sec-proxy.c
drivers/mailbox/mailbox-uclass.c
drivers/mailbox/sandbox-mbox-test.c
drivers/mailbox/sandbox-mbox.c
drivers/mailbox/stm32-ipcc.c
drivers/mailbox/tegra-hsp.c
drivers/mailbox/zynqmp-ipi.c
drivers/misc/imx8/scu_api.c
drivers/misc/k3_avs.c
drivers/misc/p2sb-uclass.c
drivers/misc/stm32_rcc.c
drivers/misc/tegra186_bpmp.c
drivers/misc/vexpress_config.c
drivers/mmc/am654_sdhci.c
drivers/mmc/arm_pl180_mmci.c
drivers/mmc/bcm2835_sdhost.c
drivers/mmc/fsl_esdhc.c
drivers/mmc/fsl_esdhc_imx.c
drivers/mmc/jz_mmc.c
drivers/mmc/mmc-uclass.c
drivers/mmc/msm_sdhci.c
drivers/mmc/mtk-sd.c
drivers/mmc/renesas-sdhi.c
drivers/mmc/sdhci-cadence.c
drivers/mmc/sh_mmcif.c
drivers/mmc/sh_sdhi.c
drivers/mmc/snps_dw_mmc.c
drivers/mmc/socfpga_dw_mmc.c
drivers/mmc/stm32_sdmmc2.c
drivers/mmc/tmio-common.c
drivers/mmc/uniphier-sd.c
drivers/mmc/zynq_sdhci.c
drivers/mtd/hbmc-am654.c
drivers/mtd/mtd_uboot.c
drivers/mtd/nand/core.c
drivers/mtd/nand/raw/atmel_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/denali_dt.c
drivers/mtd/nand/raw/pxa3xx_nand.c
drivers/mtd/nand/raw/sunxi_nand.c
drivers/mtd/nand/raw/tegra_nand.c
drivers/mtd/nand/raw/vf610_nfc.c
drivers/mtd/nand/spi/core.c
drivers/mtd/nand/spi/gigadevice.c
drivers/mtd/nand/spi/macronix.c
drivers/mtd/nand/spi/micron.c
drivers/mtd/nand/spi/winbond.c
drivers/mtd/renesas_rpc_hf.c
drivers/mtd/spi/sf-uclass.c
drivers/mtd/spi/spi-nor-core.c
drivers/mtd/spi/spi-nor-tiny.c
drivers/mtd/ubi/debug.c
drivers/mtd/ubi/misc.c
drivers/mtd/ubi/upd.c
drivers/net/bcm6348-eth.c
drivers/net/bcm6368-eth.c
drivers/net/designware.c
drivers/net/dwc_eth_qos.c
drivers/net/dwmac_socfpga.c
drivers/net/e1000.c
drivers/net/e1000_spi.c
drivers/net/fsl-mc/dpio/qbman_portal.c
drivers/net/fsl-mc/mc.c
drivers/net/fsl_enetc.c
drivers/net/ftgmac100.c
drivers/net/higmacv300.c
drivers/net/mscc_eswitch/jr2_switch.c
drivers/net/mscc_eswitch/luton_switch.c
drivers/net/mscc_eswitch/ocelot_switch.c
drivers/net/mscc_eswitch/serval_switch.c
drivers/net/mscc_eswitch/servalt_switch.c
drivers/net/mtk_eth.c
drivers/net/mvneta.c
drivers/net/mvpp2.c
drivers/net/pch_gbe.c
drivers/net/pfe_eth/pfe_driver.c
drivers/net/pfe_eth/pfe_eth.c
drivers/net/pfe_eth/pfe_firmware.c
drivers/net/pfe_eth/pfe_mdio.c
drivers/net/phy/fixed.c
drivers/net/pic32_eth.c
drivers/net/sandbox-raw-bus.c
drivers/net/sni_ave.c
drivers/net/sun8i_emac.c
drivers/net/sunxi_emac.c
drivers/net/ti/am65-cpsw-nuss.c
drivers/net/ti/cpsw-common.c
drivers/net/ti/cpsw.c
drivers/net/ti/cpsw_mdio.c
drivers/net/zynq_gem.c
drivers/nvme/nvme.c
drivers/pci/pci-aardvark.c
drivers/pci/pci-uclass.c
drivers/pci/pci_mvebu.c
drivers/pci/pcie_dw_ti.c
drivers/pci/pcie_fsl.c
drivers/pci/pcie_imx.c
drivers/pci/pcie_intel_fpga.c
drivers/pci/pcie_mediatek.c
drivers/phy/allwinner/phy-sun4i-usb.c
drivers/phy/bcm6318-usbh-phy.c
drivers/phy/bcm6348-usbh-phy.c
drivers/phy/bcm6358-usbh-phy.c
drivers/phy/bcm6368-usbh-phy.c
drivers/phy/marvell/comphy_core.c
drivers/phy/meson-g12a-usb2.c
drivers/phy/meson-g12a-usb3-pcie.c
drivers/phy/meson-gxl-usb2.c
drivers/phy/meson-gxl-usb3.c
drivers/phy/phy-mtk-tphy.c
drivers/phy/phy-rcar-gen2.c
drivers/phy/phy-rcar-gen3.c
drivers/phy/phy-stm32-usbphyc.c
drivers/phy/phy-ti-am654.c
drivers/pinctrl/broadcom/pinctrl-bcm6838.c
drivers/pinctrl/intel/pinctrl.c
drivers/pinctrl/meson/pinctrl-meson.c
drivers/pinctrl/mscc/mscc-common.c
drivers/pinctrl/mtmips/pinctrl-mtmips-common.c
drivers/pinctrl/mvebu/pinctrl-armada-37xx.c
drivers/pinctrl/nxp/pinctrl-imx.c
drivers/pinctrl/nxp/pinctrl-mxs.c
drivers/pinctrl/pinctrl-generic.c
drivers/pinctrl/pinctrl-single.c
drivers/pinctrl/pinctrl-stmfx.c
drivers/pinctrl/pinctrl-uclass.c
drivers/pinctrl/pinctrl_stm32.c
drivers/pinctrl/renesas/pfc.c
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c
drivers/power/domain/bcm6328-power-domain.c
drivers/power/domain/imx8-power-domain-legacy.c
drivers/power/domain/imx8-power-domain.c
drivers/power/domain/imx8m-power-domain.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/power-domain-uclass.c
drivers/power/domain/sandbox-power-domain-test.c
drivers/power/domain/sandbox-power-domain.c
drivers/power/domain/tegra186-power-domain.c
drivers/power/domain/ti-sci-power-domain.c
drivers/power/pmic/fan53555.c
drivers/power/pmic/i2c_pmic_emul.c
drivers/power/pmic/stpmic1.c
drivers/power/regulator/pwm_regulator.c
drivers/power/regulator/stm32-vrefbuf.c
drivers/power/regulator/tps62360_regulator.c
drivers/ram/k3-am654-ddrss.c
drivers/ram/k3-j721e/k3-j721e-ddrss.c
drivers/ram/stm32_sdram.c
drivers/remoteproc/k3_system_controller.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-bcm6345.c
drivers/reset/reset-hisilicon.c
drivers/reset/reset-imx7.c
drivers/reset/reset-mediatek.c
drivers/reset/reset-meson.c
drivers/reset/reset-mtmips.c
drivers/reset/reset-rockchip.c
drivers/reset/reset-socfpga.c
drivers/reset/reset-sunxi.c
drivers/reset/reset-ti-sci.c
drivers/reset/reset-uclass.c
drivers/reset/reset-uniphier.c
drivers/reset/sandbox-reset-test.c
drivers/reset/sandbox-reset.c
drivers/reset/sti-reset.c
drivers/reset/stm32-reset.c
drivers/reset/tegra-car-reset.c
drivers/reset/tegra186-reset.c
drivers/rtc/ds3232.c
drivers/rtc/rv3029.c
drivers/rtc/stm32_rtc.c
drivers/serial/atmel_usart.c
drivers/serial/serial-uclass.c
drivers/serial/serial_bcm6345.c
drivers/serial/serial_lpuart.c
drivers/serial/serial_msm.c
drivers/serial/serial_pic32.c
drivers/serial/serial_stm32.c
drivers/serial/serial_zynq.c
drivers/smem/msm_smem.c
drivers/soc/ti/k3-navss-ringacc.c
drivers/sound/sound-uclass.c
drivers/spi/atmel-quadspi.c
drivers/spi/bcm63xx_hsspi.c
drivers/spi/bcm63xx_spi.c
drivers/spi/cadence_qspi.c
drivers/spi/designware_spi.c
drivers/spi/mvebu_a3700_spi.c
drivers/spi/mxc_spi.c
drivers/spi/spi-mem-nodm.c
drivers/spi/spi-mem.c
drivers/spi/spi-sunxi.c
drivers/spi/stm32_qspi.c
drivers/spi/stm32_spi.c
drivers/spi/uniphier_spi.c
drivers/spi/zynqmp_gqspi.c
drivers/spmi/spmi-msm.c
drivers/sysreset/sysreset-ti-sci.c
drivers/tee/optee/core.c
drivers/tee/optee/rpmb.c
drivers/tee/optee/supplicant.c
drivers/tee/tee-uclass.c
drivers/timer/dw-apb-timer.c
drivers/timer/ostm_timer.c
drivers/timer/stm32_timer.c
drivers/ufs/cdns-platform.c
drivers/ufs/ti-j721e-ufs.c
drivers/ufs/ufs.c
drivers/usb/cdns3/cdns3-ti.c
drivers/usb/cdns3/core.c
drivers/usb/cdns3/drd.c
drivers/usb/cdns3/ep0.c
drivers/usb/cdns3/gadget.c
drivers/usb/dwc3/core.c
drivers/usb/dwc3/dwc3-omap.c
drivers/usb/dwc3/dwc3-uniphier.c
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c
drivers/usb/dwc3/ti_usb_phy.c
drivers/usb/gadget/dwc2_udc_otg.c
drivers/usb/gadget/storage_common.c
drivers/usb/gadget/udc/udc-core.c
drivers/usb/host/dwc2.c
drivers/usb/host/ehci-atmel.c
drivers/usb/host/ehci-generic.c
drivers/usb/host/ehci-hcd.c
drivers/usb/host/ohci-da8xx.c
drivers/usb/host/ohci-generic.c
drivers/usb/host/r8a66597-hcd.c
drivers/usb/host/xhci-rcar.c
drivers/usb/musb-new/am35x.c
drivers/usb/musb-new/da8xx.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_gadget_ep0.c
drivers/usb/musb-new/musb_host.c
drivers/usb/musb-new/musb_uboot.c
drivers/usb/musb-new/omap2430.c
drivers/usb/musb-new/pic32.c
drivers/usb/musb-new/sunxi.c
drivers/usb/musb-new/ti-musb.c
drivers/usb/phy/omap_usb_phy.c
drivers/video/atmel_hlcdfb.c
drivers/video/console_truetype.c
drivers/video/da8xx-fb.c
drivers/video/dw_mipi_dsi.c
drivers/video/hitachi_tx18d42vm_lcd.c
drivers/video/mali_dp.c
drivers/video/mvebu_lcd.c
drivers/video/mxsfb.c
drivers/video/orisetech_otm8009a.c
drivers/video/pwm_backlight.c
drivers/video/raydium-rm68200.c
drivers/video/rockchip/rk3288_hdmi.c
drivers/video/rockchip/rk_edp.c
drivers/video/sandbox_osd.c
drivers/video/scf0403_lcd.c
drivers/video/ssd2828.c
drivers/video/stm32/stm32_dsi.c
drivers/video/stm32/stm32_ltdc.c
drivers/video/video-uclass.c
drivers/virtio/virtio-uclass.c
drivers/virtio/virtio_ring.c
drivers/w1-eeprom/ds2502.c
drivers/w1/mxc_w1.c
drivers/watchdog/armada-37xx-wdt.c
drivers/watchdog/cdns_wdt.c
fs/ext4/ext4_write.c
fs/ext4/ext4fs.c
fs/fat/fat_write.c
fs/sandbox/sandboxfs.c
fs/ubifs/lprops.c
fs/ubifs/ubifs.c
fs/yaffs2/yaffs_nandif.c
fs/yaffs2/yaffs_uboot_glue.c
include/dm/device.h
include/dm/device_compat.h [new file with mode: 0644]
include/linux/clk-provider.h
lib/bch.c
lib/binman.c
lib/bzip2/bzlib.c
lib/crypto/rsa_helper.c
lib/efi/efi.c
lib/efi/efi_app.c
lib/efi/efi_stub.c
lib/efi_driver/efi_block_device.c
lib/efi_driver/efi_uclass.c
lib/efi_loader/efi_console.c
lib/efi_loader/efi_runtime.c
lib/fdtdec.c
lib/libavb/avb_cmdline.c
lib/libavb/avb_descriptor.c
lib/libavb/avb_rsa.c
lib/libavb/avb_slot_verify.c
lib/libavb/avb_sysdeps_posix.c
lib/libavb/avb_util.c
lib/linux_compat.c
lib/lmb.c
lib/rsa/rsa-sign.c
lib/rsa/rsa-verify.c
lib/zstd/decompress.c
lib/zstd/zstd_common.c
net/mdio-uclass.c
post/post.c
test/dm/clk.c
test/dm/dma.c
test/dm/gpio.c
test/dm/mailbox.c
test/dm/power-domain.c
test/dm/reset.c
test/dm/spmi.c
test/dm/tee.c
test/dm/video.c
test/lib/lmb.c
test/unicode_ut.c

index a1c265f46f156faba0c3e7279bb888540cf8d549..b3e59b1b003550c0ec92b67186105268ff47f5bc 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <nand.h>
 #include <dm/devres.h>
 
index 58a29e8a03cb37a589b6e8f49f68f876512777df..c956a8092d888be44634bddcea74ce1a122d7684 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <mmc.h>
 #include <spi_flash.h>
index c68e93ba10070e17ac2c4e2acea754abbf8f91a6..a95db5e5c3c7e3f8ad917cf77dd7fbae2b34e80c 100644 (file)
@@ -47,6 +47,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index 6088911a1b70984cb4c11fa7c41710d7812d0e52..812f3bd5f316873b15fca27ff61d7b1c2e975901 100644 (file)
@@ -7,6 +7,7 @@
 #include <env.h>
 #include <clk.h>
 #include <init.h>
+#include <malloc.h>
 #include <asm/armv7.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/bootrom.h>
index b6815ddc55f154743d8fbd46a4d447044169b7d3..edf59947094f0bb0fe0ba5ee6c547529b099e669 100644 (file)
@@ -3,6 +3,7 @@
  *Copyright (c) 2018 Rockchip Electronics Co., Ltd
  */
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/grf_rk3308.h>
 #include <asm/arch-rockchip/hardware.h>
index 791066d25b0ac7c6b2e63fc60b3e043648e7ffc9..4ee2b7b4bbe33a4379810995ae04cdc7f3bb6d89 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/arch/clock_manager.h>
 #include <asm/arch/system_manager.h>
 #include <asm/io.h>
index 392f2eb915a9e4e5e724826f3a7446c2acb84bc5..d7c8eaf47dc89da1fe6046270d8d033858a281f2 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <clk.h>
index 977cc7d348d6d082285c502e51e680c3ddc15523..4559ef599d7b61ad9850e553b4f0b422eaa8c600 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <power/pmic.h>
 #include <power/regulator.h>
index c5361ca73d4e630f92893a872ef4973909258e0e..390229436ecfeb56cda515c2d8291dfb9b11439a 100644 (file)
@@ -8,6 +8,7 @@
 #include <fdt_support.h>
 #include <fdtdec.h>
 #include <hang.h>
+#include <malloc.h>
 #include <stdlib.h>
 #include <string.h>
 
index 1a6acd46cd57a2684a0d8ced9d08fca56fd1aef8..b578f6538ab02fb3328a98457b69a3a2f3dec696 100644 (file)
@@ -6,6 +6,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/arch/clk.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 211ea15884cee0201b9cd14f61ae482ea699b2bf..d822e20d2b230f2b2af2915d6dfc4fd2bbd6a954 100644 (file)
@@ -32,6 +32,7 @@
 #include <div64.h>
 #include <dm.h>
 #include <time.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/clk.h>
index cee3c0cb0a63ab96595ec58fe1eae11d5b4e1ba7..8976ef57c7031c0a4f9c07d171bbcc92a56c4628 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <malloc.h>
 #include <ram.h>
 #include <wdt.h>
 #include <asm/io.h>
index 8bb12a52c6dba8fcf88ae9913e6682a1fcacf5cb..8075d93d411deba1cfdede5e3a1c8dc0265fcc76 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <mach/pic32.h>
 #include <mach/ddr.h>
 #include <dt-bindings/clock/microchip,clock.h>
index ff7430393ffe80cc31e67e741b9002af46978869..56ee3f5826030160d04068c5f71fe9183a8d5783 100644 (file)
@@ -10,6 +10,7 @@
 #include <linux/libfdt.h>
 #include <os.h>
 #include <asm/io.h>
+#include <asm/malloc.h>
 #include <asm/setjmp.h>
 #include <asm/state.h>
 #include <dm/root.h>
index 9804227f80bd5f174f0d74019c9772528ac58453..92ecacf98ac86f7eee462e3ef297271139167169 100644 (file)
@@ -9,6 +9,7 @@
 #include <binman.h>
 #include <dm.h>
 #include <irq.h>
+#include <malloc.h>
 #include <asm/intel_pinctrl.h>
 #include <asm/io.h>
 #include <asm/intel_regs.h>
index 7ab7243311c5fcf05177842c68e72dd767b1f5ed..d32f2a989876b3f38284869f5c79a7721bb381f8 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <binman_sym.h>
 #include <dm.h>
+#include <malloc.h>
 #include <spi.h>
 #include <spl.h>
 #include <spi_flash.h>
index f2b356eb447bca4ad4fee2f7c9232fe467e7202c..f368f7d2db4e9ef55d532a73dec6968e24a1412f 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dt-structs.h>
+#include <malloc.h>
 #include <ns16550.h>
 #include <spl.h>
 #include <asm/io.h>
index 9df51adecc10168733dbb202dec4f315c8ad2630..fb30984de3e7e1bda249f7d26c59fa0a48605789 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <irq.h>
+#include <malloc.h>
 #include <p2sb.h>
 #include <spl.h>
 #include <asm/itss.h>
index a4136eb98cfd14372b67c45b262f8476a41d9774..0da36bddeaecb20e1d8ab9addd8e95026b020a24 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <env_internal.h>
+#include <malloc.h>
 #include <asm/e820.h>
 #include <asm/arch/qemu.h>
 
index 49e9dfcf69199f0b74b5fd99cc3e98b3036a7d70..349bab1583ac69d150807817c6f66c1962f13396 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu.h>
 #include <dm.h>
+#include <malloc.h>
 #include <qfw.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
index 8685aa30467bf4e419e7074c0ad8b68f0020bb02..2943e11d2a40a77b88920a5f8468d8d4dd01f2c9 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <acpi_s3.h>
+#include <malloc.h>
 #include <vbe.h>
 #include <asm/coreboot_tables.h>
 #include <asm/e820.h>
index ec9c218778d2eae7d93f23fb15720b4421a46142..aee2a05044f8ab0ccda947e27e2924e71b4b494a 100644 (file)
@@ -7,6 +7,7 @@
 #include <acpi_s3.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <rtc.h>
 #include <asm/cmos_layout.h>
 #include <asm/early_cmos.h>
index b9420a4cab5201efffb66832c140f03ccc82bdcb..8914960226dcbdf5dc90ebc79e2342881d437bea 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
index 99f142936318da1c78a110aafd8df586d2312eca..7aea722d0b8dd7a1041d346f1cd7b162c86073a9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <smbios.h>
 #include <asm/sfi.h>
 #include <asm/mpspec.h>
index cbac112dd8423f0bb86d8a35ad5764aaffe7147c..2f92c6564d7867255dc720f7c7e79db8341fe992 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/bootm.h>
 #include <asm/gpio.h>
 #include <asm/setup.h>
index da33f8441cec9b23fa8cc6c760f43178e1bace38..cec819b36fbed11ff58576a5b79fe0f00925e36b 100644 (file)
@@ -10,6 +10,7 @@
  * Frederik Kriewitz <frederik@kriewitz.eu>
  */
 #include <common.h>
+#include <malloc.h>
 #include <twl4030.h>
 #include <status_led.h>
 #include <asm/io.h>
index ae03f0a434fa1f715f3a226bfed7688ab15847fd..48cf3091e99792db5365f6743467b5da077dd970 100644 (file)
@@ -8,6 +8,7 @@
 #include <env_internal.h>
 #include <init.h>
 #include <led.h>
+#include <malloc.h>
 #include <net.h>
 #include <spi.h>
 #include <spi_flash.h>
index 12410d9b715bc51bb89606351914f0747114774e..94eeab97489233f4f62b426706ee6a4d635eeea5 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "vpd_reader.h"
+#include <malloc.h>
 
 #include <i2c.h>
 #include <linux/bch.h>
index bc9fdcd1e6c8267d3fd13eabcbe74addf6039fe2..b0f8d8a314a5cf8e53f50faaccc8400c49a9a0ae 100644 (file)
@@ -9,6 +9,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <malloc.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index 74fc5f08900ae7128415c45f44508cb449ad5bfc..1b871fdcc5af4190f633d4f3b35bc7fa1a3238a7 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <malloc.h>
 #include <status_led.h>
 #include <dm.h>
 #include <ns16550.h>
index 065e6a2ccc444d1f2e736c6f481b8a6dc7b2700b..70a13aa17b3d932944ceffae50a4a886300397f7 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <init.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/sys_proto.h>
index 8bfdee91e56ecda00b9e3bd2a189214f5d40dcc1..aa8aab39cec2128835ec2ee85947e53528b41bfd 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <malloc.h>
 #include <dt-bindings/clock/microchip,clock.h>
 #include <mach/pic32.h>
 
index 442028a764c71f3473a81f35bbe791a05ceb357a..baa7997477efe9cc4b088a6b7c966ca0b47f6296 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <malloc.h>
 #include <ns16550.h>
 #include <netdev.h>
 #include <twl4030.h>
index 5f5e2eb544cc32645904ced6619da2b8d0c7af18..24429d2837345b8cd9d722308afa4cab1747410a 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <env.h>
 #include <errno.h>
+#include <malloc.h>
 #include <serial.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index b5a10ebf8be1add8298bf4811b4426bffb94c054..58bb5bab1a144e3007717f734c7685141f7e4c4b 100644 (file)
@@ -16,6 +16,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <malloc.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/hardware.h>
index d7d9738a6d0a1cd30403b0b185779fac4e37b2a5..bd4eaa4f3a597cc41bd402797cf69ab1b30f81c4 100644 (file)
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <malloc.h>
 #include <spi.h>
 #include <spl.h>
 #include <asm/arch/cpu.h>
index 9ee2e0b3d31425c2b63f99c5088600a4e4fe11f3..ca76579405d1f100eca989fa1e18d5da6bf18e20 100644 (file)
@@ -16,6 +16,7 @@
 #include <i2c.h>
 #include <init.h>
 #include <led.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <misc.h>
 #include <mtd.h>
index 6c75ce08702d695109faa605f48aaf8cedac1a53..6b6bb70e3cb6071e53c8a03e98a51b59dc013447 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <clk.h>
+#include <malloc.h>
 #include <dm/device.h>
 
 #include "clk-lib.h"
index 22d26e550e01d5c7693bc601e4093b41464cbb2a..7d7c427392f1355dfc068ac2aa406a3ca6185d6b 100644 (file)
@@ -4,6 +4,7 @@
  *      Tapani Utriainen <linuxfae@technexion.com>
  */
 #include <common.h>
+#include <malloc.h>
 #include <netdev.h>
 #include <twl4030.h>
 #include <asm/io.h>
index 3d7f73843c94e896e481a2a5fe3e7f79f99cf6b8..01b28e8da46b31fffce2cfe8ab821dd835a88ace 100644 (file)
@@ -12,6 +12,7 @@
 #include <env.h>
 #include <errno.h>
 #include <init.h>
+#include <malloc.h>
 #include <spl.h>
 #include <serial.h>
 #include <asm/arch/cpu.h>
index d70ab0c4d01c66a87e16dc1855ce702ecdcc5278..7528de3e5c3c9955b7f5e54f7a38ff0887d3d7a0 100644 (file)
@@ -11,6 +11,7 @@
 #include <env.h>
 #include <fdt_support.h>
 #include <init.h>
+#include <malloc.h>
 #include <palmas.h>
 #include <sata.h>
 #include <serial.h>
index 490d8cbcd061f6b56024aff51db8d4a47814546f..b037d725c3af0ed3b8bd4533d6cd36e1cc84517e 100644 (file)
@@ -18,6 +18,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <malloc.h>
 #include <ns16550.h>
 #include <twl4030.h>
 #include <asm/io.h>
index 56bdff33c64732fc6f6671b08478121133d9e742..d347bd5ec064a2737f24da8a536d83a9cd45b3e6 100644 (file)
@@ -13,6 +13,7 @@
 #include <efi_selftest.h>
 #include <env.h>
 #include <errno.h>
+#include <malloc.h>
 #include <linux/libfdt.h>
 #include <linux/libfdt_env.h>
 #include <mapmem.h>
index 5f4c7ff114e0589ac800233cb4382406602639f9..8ce8ba909d4f5fe8e8c8b6e3dc4a208cc6a0bb02 100644 (file)
@@ -10,6 +10,7 @@
 #include <command.h>
 #include <errno.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/gpio.h>
 #include <linux/err.h>
 
index 98c4d2a099e972354114d6fcfb0efb158e33dbad..eefc4f255ef2fcfe3b69f57cc4ce789ca033bd08 100644 (file)
@@ -8,6 +8,7 @@
 #include <fs.h>
 #include <part.h>
 #include <sandboxblockdev.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 
 static int host_curr_device = -1;
index 36ca7a101c1fd5b2cc4dc261aecf5dd0ebe60ec8..76367fed94b7a0a67648a3329149dcc4ad39f375 100644 (file)
--- a/cmd/rng.c
+++ b/cmd/rng.c
@@ -8,6 +8,7 @@
 #include <command.h>
 #include <dm.h>
 #include <hexdump.h>
+#include <malloc.h>
 #include <rng.h>
 
 static int do_rng(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
index 42882b16cb8bc827500d12bc216025dfcb00572b..30142552290635cea1448abb56eab3f0d71ac9f5 100644 (file)
@@ -7,6 +7,7 @@
 #include <command.h>
 #include <dm.h>
 #include <env.h>
+#include <malloc.h>
 #include <asm/unaligned.h>
 #include <linux/string.h>
 #include <tpm-common.h>
index 7fb4cdfc2a884ac440762e93127e3c95c8999711..cecf251fdb917145ff9550696b1362ed3aa67799 100644 (file)
--- a/cmd/ubi.c
+++ b/cmd/ubi.c
@@ -15,6 +15,7 @@
 #include <command.h>
 #include <env.h>
 #include <exports.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <mtd.h>
 #include <nand.h>
index 570cf3aa508bd03828b1b654043d844feb237ab2..c5c6899787c84a746afb30317433ab9c779f39e8 100644 (file)
@@ -11,6 +11,7 @@
 #include <command.h>
 #include <console.h>
 #include <g_dnl.h>
+#include <malloc.h>
 #include <part.h>
 #include <usb.h>
 #include <usb_mass_storage.h>
index dccd1143a7a5bc5c3dc46ad13bc3a7a13c27f278..770f6a3eede78bf2edce966cf831f3f5e027dc24 100644 (file)
@@ -17,6 +17,7 @@
 #include <env.h>
 #include <gzip.h>
 #include <image.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <watchdog.h>
 #if defined(CONFIG_BZIP2)
index 6c4df419b29ac45e3db4b6ace36abb838c3d3e38..e0fe32d24da5b1cd616a3bd3f08ba16547c8c871 100644 (file)
@@ -5,6 +5,7 @@
 #include <common.h>
 #include <android_ab.h>
 #include <android_bootloader_message.h>
+#include <malloc.h>
 #include <linux/err.h>
 #include <memalign.h>
 #include <u-boot/crc.h>
index 94a1b4abebac941858909b7e89cfd838ee40f5b1..4ea9be6da9e626a91063c483742607d67a84518c 100644 (file)
@@ -13,6 +13,7 @@
 #include <env.h>
 #include <fdtdec.h>
 #include <hash.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <menu.h>
 #include <post.h>
index dbe8535f9cd0189bbca5084bc56549de0d99af43..3002948b6b0e219f25a31ce40125ec92ce46e6df 100644 (file)
@@ -14,6 +14,7 @@
 #include <env.h>
 #include <errno.h>
 #include <image.h>
+#include <malloc.h>
 #include <linux/libfdt.h>
 #include <mapmem.h>
 #include <asm/io.h>
index 2288cff1266132529e462b8112d63796862b5c2a..94873cb6ed50cb4c37e142393d5d244bd3159181 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <env.h>
+#include <malloc.h>
 #include <u-boot/crc.h>
 #include <watchdog.h>
 
index d9bcb5a57e89f5922aaba1e353a120d82490ef34..349e838f1d57785dff86eb5e8ee04d682d3841ec 100644 (file)
@@ -28,6 +28,7 @@
 #include <common.h>
 #include <command.h>
 #include <dm.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <asm/processor.h>
 #include <linux/compiler.h>
index 25c2ac43450db8b92cba39fbab8dd9c9b47ebe21..c642b683e7ebc74dab4056001d8b2179265c68bb 100644 (file)
@@ -26,6 +26,7 @@
 #include <dm.h>
 #include <env.h>
 #include <errno.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <asm/processor.h>
 #include <asm/unaligned.h>
index 04b6a8a2f5b5db216c0b4c8290b7dc03500c6001..2ca0fb4f108b3df3973f1cfe2a319e735e9a3903 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 #include "stm32-adc-core.h"
 
index 029338e4af6093ad0fa4f9d70a6e2853bed5301d..ca1ac3e757ee8a5ede1a73906ff0d247e64b5567 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <adc.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 #include "stm32-adc-core.h"
 
index d724f190798fe87c73b79d80fdb3cc03698c6802..a6f483ed2511a9da7fba9a867a4e9c5ccb823d6f 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <axi.h>
 #include <dm.h>
+#include <malloc.h>
 
 /**
  * struct sandbox_store_priv - Private data structure of a AXI store device
index 77711144919ba8d53e94c88730ffb68f8043b109..7c39aa5f2f5fd99c34101a1f636e7dba95bd9d28 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <blk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/uclass-internal.h>
index d3b1aaaba36d77921ad306f39e9606821ed8b92e..cca2237136a6edfa2e41b7d15da8f62a0b039235 100644 (file)
@@ -11,6 +11,7 @@
 #include <os.h>
 #include <malloc.h>
 #include <sandboxblockdev.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <dm/device-internal.h>
 
index a39cd34fe5833e3a426edd1b7c452ebcc92adb00..affeb31fc2e974f40e80ae8d295de408412bbe8b 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/util.h>
index d8562e131dafc265d6bda29488d5204e52e152b9..a80f259a72cf26a86cbf7a7ea15d3f19f371fbbb 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <malloc.h>
 #include <linux/err.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
index 8f02d73d8dae0501d9204ef0cb109fbe6a42080b..86bb71f6128ba49381dfeef8b4072327c719a500 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/util.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
index c880af8155f1daf210fec67bc1a850ba3cacc3b3..c55e6214b2267abdae9a259e9526d10ef8e69c18 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <malloc.h>
 #include <linux/io.h>
 #include <mach/at91_pmc.h>
 #include "pmc.h"
index 5d1489ab0ec060b4dca95281892b987be8724f52..f1f76b0a4da8061d1955804a030c2cf6ae7dd6eb 100644 (file)
@@ -13,6 +13,7 @@
 #include <errno.h>
 #include <clk-uclass.h>
 #include <i2c.h>
+#include <dm/device_compat.h>
 
 #define MAX_NUMBER_OF_PLLS             4
 #define MAX_NUMER_OF_OUTPUTS           9
index b085a4fc14c1f4e85f1db38a5e75216d7e9b178c..82241d9f3f527e89ddcd1827a103bf2608829c7d 100644 (file)
@@ -12,6 +12,8 @@
 #include <dm.h>
 #include <errno.h>
 #include <clk-uclass.h>
+#include <malloc.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <k3-avs.h>
index 6787d2569ca3b17b7c4fae36a0ebb08bd7e88099..71878474ebe1a1648fcca53dac2228611c955760 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <malloc.h>
 #include <dm/devres.h>
 #include <dm/read.h>
 #include <linux/clk-provider.h>
index cc084b0644cf95db529a130d5366ed86759585d5..768fbb7c52030f58e8c996ef464bdb7af03d46e6 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <asm/clk.h>
 
 struct sandbox_clk_priv {
index 0903c817a644e992956bdcc361e91fc79e076f42..3543bea70d2b32f5b21920d57b2103a76e22377d 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <malloc.h>
 #include <asm/clk.h>
 #include <clk-uclass.h>
 #include <dm/devres.h>
index 628110de3e0942af0b24e24cac5cd11f0140c620..873383856f9233c090991393c636c25be877a6da 100644 (file)
@@ -6,7 +6,9 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <malloc.h>
 #include <asm/clk.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 struct sandbox_clk_test {
index 66cbef15ab8a68a26df2d5aeb325568ba1da0ed3..9d4d2149e327fe32b37378929756662d9d416f68 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/bitfield.h>
 #include <malloc.h>
index c692a6d0b89992698e5ccc98cadfa14913753111..82e589e239fe1aba952283753d5856ab118cd70f 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <errno.h>
 #include <misc.h>
index b09c37db40f1565ab95bdf3704b739ed6183180e..4ca1cc0d52a22c7edde7b075e2dce90028a09639 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <errno.h>
 #include <asm/io.h>
index a365b565e172484a6e6ebf5d1ba2f9cbc5232d25..e0eb897da892c69e94f0ef6d7726514adb08b1fc 100644 (file)
@@ -6,6 +6,8 @@
  */
 
 #include <common.h>
+#include <malloc.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <clk-uclass.h>
 #include <clk.h>
index a755e2650161c1e62252cb1b4d807e720df3ccea..671054d9befa9c1b56dd291e058cd6a7f8c4bf97 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/arch/sci/sci.h>
 #include <asm/arch/clock.h>
 #include <dt-bindings/clock/imx8qxp-clock.h>
index b1a35968e15c72d533096db6b3c8c9e4a8b7d249..068e48ea040cc064a48289480240dd83aafed313 100644 (file)
@@ -15,6 +15,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
+#include <dm/device_compat.h>
 
 #define TBG_SEL                0x0
 #define DIV_SEL0       0x4
index aa7ccd690f726669266d32b88b1ffdd3dc34fa55..233926e9b6a877b2029598dff89004cb673aed43 100644 (file)
@@ -14,6 +14,7 @@
 #include <dm.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
+#include <dm/device_compat.h>
 
 #define NUM_TBG            4
 
index 36764c128b05443eecefef7fd9ca4d4d06048924..b88534145efb0bee0210c59528277426f29ed545 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_px30.h>
index 6d5ae3d003143be4bfe6d32bf2bd3eab4097a59e..6e085c41368719d75abe5c5b279e4466e8ce3a63 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index efda8c830b07fc8c754224ba85948e9ae8646157..a6f7902941a717d9065b09101fba30d8395bf0ee 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index 82eea4006362688d49f4d7754b3c3ed9b324ec7b..2b82a40d2819fbe79918fcd9e0daac76b3174dcb 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <asm/io.h>
index 6e8a164d6220594bce61f7ca3c3062275765648d..ef33adbf2941308296130b1d49e9d0a18e3c4ac9 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index 2d42f6ffc5d9bb403c58010fcdceb1f77add4fbe..81cdb8ee9c7610f36f846b1fe356a3818c625782 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <asm/io.h>
index f212c5ffc2c632a1e91462aa95103371b274db5c..c0f1285e4c707b529e7bfede18ffc41202f0c6a7 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <div64.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch/cru_rk3308.h>
index e700a1bc25cb0e5ed431e085b247c8b80c407f96..8e867c58dfec93a98d47fc9cff773edd1c49a7c7 100644 (file)
@@ -8,6 +8,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/arch-rockchip/clock.h>
 #include <asm/arch-rockchip/cru_rk3328.h>
index b51d529adea02858e33242d1122d01533649f0c6..2cce1b967d175c4bb31534b055f918e44c8cf5cc 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <bitfield.h>
index 37fc142a7a88a8559d63f3a52bff9d509a11b410..865b80cc0fb296aeef2ed8eb284a311ee4d4b4d2 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dt-structs.h>
 #include <errno.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <syscon.h>
 #include <bitfield.h>
index 97fdd099ef39a04e6f151cbe63c3bdb40565ae25..da9c48b962ab636e4178b630af779437d02e60cf 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm/arch-rockchip/clock.h>
index 07e8734b3a69c75e8481e23b1f6414d0e04692e1..6083f14e751480d2125f14091fb027cbc4f306d2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
 
index 1da63819e7db62f86b95d8ce3d4561dac8dad7bb..9f24050992566728309a7128dad1032454bd680a 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <clk-uclass.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index d98e80de26d73a5cf8df62113e6fe44c491fce3e..457e1309c54e43fac2737a92b4c98ece84b03c75 100644 (file)
@@ -10,6 +10,7 @@
 #define LOG_CATEGORY LOGC_DEVRES
 
 #include <common.h>
+#include <malloc.h>
 #include <linux/compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
index 945b81448ccef04fc9aa308695ea3f82e38d5003..acd745c1211973fd375cdb8f28461fabb63bdfdc 100644 (file)
@@ -20,6 +20,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <linux/ctype.h>
index f55ef15cee37beac3844ed1c50e0da2c999a0f24..96a5dd20bd155db3bcaecfa7f967135b254c7b3e 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <fdt_support.h>
+#include <malloc.h>
 #include <linux/libfdt.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
index 5bb38e329cb847c3201e5a5c0f925f3a99856364..ac2de475156f30f9885c231d88d01d710b690016 100644 (file)
@@ -10,6 +10,7 @@
 #include <errno.h>
 #include <regmap.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/err.h>
index a3b914fdfc0632a66967b15bd92c39a4feff2cad..381b11b503e782662ea05fb5e5e6a67a0e04831a 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/arch/sdram.h>
 #include <asm/arch/system_manager.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 #include "sequencer.h"
 
index e0d04ccca2812a7cb25aa71dca8c0160e804e421..1f7ead0c674798ca4eb82d6e636f42a5ab3f267c 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/arch/system_manager.h>
 #include <asm/arch/reset_manager.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/sizes.h>
 
 #define PGTABLE_OFF    0x4000
index 96250eb5d2a09f1c2363de451e6fa9cdeb252758..d99460f2fb2bc965fb4df4915f47332f42cfaa84 100644 (file)
@@ -20,6 +20,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <dma-uclass.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <reset.h>
 #include <asm/io.h>
index a0159d78884979ef9c6f195f43bd31113f73d6e1..9d5a7fc796c488e708cfba2f05ed74b18edf7880 100644 (file)
@@ -12,6 +12,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
 #include <dt-structs.h>
index d009bb216832c05bbf00ad39d25510196d9a43ea..234a7d2134dc34750bf01ddf3f73690550a6614b 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/read.h>
 #include <dma-uclass.h>
 #include <dt-structs.h>
index ab516b573c8820558c9605b45930f7dde58511fb..f274100f32227b6df1df2e3baae4ff218a78dc57 100644 (file)
@@ -12,6 +12,7 @@
 #include <malloc.h>
 #include <asm/dma-mapping.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/read.h>
 #include <dm/of_access.h>
index 5e37ee05707dc7f240d6b91455e938eaf057a314..99b2e5dfed41ef03c74b49a42ff5fc1fc835e299 100644 (file)
@@ -11,7 +11,9 @@
 #include <dm.h>
 #include <errno.h>
 #include <mailbox.h>
+#include <malloc.h>
 #include <dm/device.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <linux/err.h>
index 7e8bd7eae881d23c641eb1869b099db19c82f652..0917871d49b8c6319d867a53da52136c6f70d805 100644 (file)
@@ -9,6 +9,7 @@
 #include <xilinx.h>             /* xilinx specific definitions */
 #include <altera.h>             /* altera specific definitions */
 #include <lattice.h>
+#include <dm/device_compat.h>
 
 /* Local definitions */
 #ifndef CONFIG_MAX_FPGA_DEVICES
index dcb1c1b3699770f5404fc64c7c2f9c8f6b14d2fb..64717a6780e066d6ce5a3dfae9e7a40671142a76 100644 (file)
@@ -15,6 +15,7 @@
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <dt-bindings/gpio/gpio.h>
 #include <spi.h>
 
index 1012f2d8eb8d2093621976ed91c9b8dab3432f58..9d293b6994ddbfd0e7d851d7505217e6b0320cd8 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 
index 5ea3e77b2d14783bffa3d65cf4e6b0c3e6baa495..3621cf240888a0e550a873b7b10377d7a27f4637 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <linux/sizes.h>
 #include <asm/gpio.h>
index 8e6f32de1f3b9fa31fda819cf5e97a89006868be..a3f5e7a2e0a0481bc34501cc8ce27854376974a4 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
 #include <mach/gpio.h>
index ac88f0ca8d8e195fbb92cf0f4d7830b240045987..0d0e9d22549de90a5d04f8ba41aeaf2ad422d57e 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
 #include <dt-bindings/gpio/gpio.h>
index 58e3e7b1f704d59fafca7b4203094ba2aedfad42..e3439eebb5b689f8cffdbd40124a39ab4547e91c 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/io.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/root.h>
index a8c5b7f879dba9a3bf5f900008b4800c19322024..9dc4cd6042271263f98c421e6b39268ec8573b4e 100644 (file)
@@ -6,6 +6,8 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
+#include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <errno.h>
 #include <asm/gpio.h>
index 912a4cac59bad02e25b687ab9479a09933371f25..29791882a340fb0af6c9676b3ebd45abd2abfb47 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/sysmap.h>
 
index dcd78e7e88e5356bb6a5ee8bc02de5ce692a93dd..276a3b350dc2393263a51ec529c225892f7bf0f1 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <mpc83xx.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 3378ebb442e5261696f4a447fc5884ba2af00af0..c65ca8172814f9ff28462ef5f48ebb37b1ddc8dd 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <errno.h>
 #include <clk.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #define MSCC_SGPIOS_PER_BANK   32
index ea2f689d60ef334029180e50d5eee4152efb3b14..12e7197daf7bba0ffe541f3f8a11a9115dbc10bd 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <linux/errno.h>
 #include "mvgpio.h"
index 77778e9ce57fa51a45e6dce684b6d5c40dfb15c9..405e9ac135be707b6359216b3f9dd76989dbe4b8 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/arch/iomux.h>
index 5c2944067bc15374519e7ec5f7c87a167460f27f..d06b834a3bcb41a9249ff13d3c40490e825206fd 100644 (file)
@@ -26,6 +26,7 @@
 #include <malloc.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <dt-bindings/gpio/gpio.h>
 
 #define PCA953X_INPUT           0
index ab0c4c1b971f9d673e345603a7641673ac72b7ae..11274c781017a0ca1cc6180e142931575d8b9d67 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <linux/errno.h>
 #include <pca9698.h>
 
index ad8da9ef284a6cb808c9732c10c3e3be7fcfce7b..6320a6280d56d775549e21939c63c100e83ab763 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/bitops.h>
 #include <asm/io.h>
 #include <sh_pfc.h>
index 525aa3b9ac577b8745eefdfa6d67e2920baa04f1..4e4cd125457dcb930a346d9f59d2b3c10173f33e 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/arch/hardware.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 302a4349477a080b51e3fcf1b6a2bcf1b373fba4..f55f834e7d667dcbd98665137a3c95eff5b51cc3 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/arch/stm32.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 
index 195f079707cd646a7f9707ca8ece3e0f3aa85b66..61d226bcbb5eb79e6cdedea5253b7dc81317726c 100644 (file)
@@ -8,6 +8,8 @@
 #include <errno.h>
 #include <hwspinlock.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
+#include <linux/compat.h>
 
 static inline const struct hwspinlock_ops *
 hwspinlock_dev_ops(struct udevice *dev)
index a32bde4906ddfb14170cce71365a90b1b266a5d6..74afb4aec22b8812e951aecb399c22e5c94903e9 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <hwspinlock.h>
+#include <malloc.h>
 #include <asm/io.h>
 
 #define STM32_MUTEX_COREID     BIT(8)
index 846b3d5320b7786e9d5770b1501425e9e95d3f47..c817ed6bf9597e343d4c2b308d7f375240241941 100644 (file)
@@ -5,6 +5,7 @@
  * (C) Copyright 2016 Songjun Wu <songjun.wu@atmel.com>
  */
 
+#include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
 #include <clk.h>
index ae9cf16297347e7d2aa584a8600b318a6b4b7824..e1d5aeb19db9e670219053bd021269aa7e2ec43d 100644 (file)
@@ -8,10 +8,12 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <pci.h>
 #include <reset.h>
 #include <asm/io.h>
 #include "designware_i2c.h"
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #ifdef CONFIG_SYS_I2C_DW_ENABLE_STATUS_UNSUPPORTED
index 62acd28e1bc0c2db4cb6bc86cf89b16e04d0fcd3..d8b4a683bcedebb945d95e4e87a119d3ebabaa35 100644 (file)
@@ -5,6 +5,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 07a7e03033d9cbe5432c61cd2ab554716154f99a..f06523ab99b2fa6ea826e6521e7fa952c45ace73 100644 (file)
@@ -5,6 +5,7 @@
  *   Author: Masahiro Yamada <yamada.masahiro@socionext.com>
  */
 
+#include <dm/device_compat.h>
 #include <linux/delay.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index c9d3faa9119f30fad2cf5b65dfa6183eb188deb3..62e68046d6c7c35bf4fb5c92e78d5853d4e528c9 100644 (file)
@@ -13,6 +13,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <i2c.h>
+#include <dm/device_compat.h>
 
 #define LPI2C_FIFO_SIZE 4
 #define LPI2C_NACK_TOUT_MS 1
index 413aaa6ba314d73a44295531c95593fabf7ca189..5029c71adc78c74ce6f79b9993ebda8dfcd16783 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <asm/gpio.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 29e283ce25e6654ec0f8b4d85ba10a405185fd88..0575bd8937f016e71bed4543ef44e74e34106f9c 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm-generic/gpio.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/pinctrl.h>
 #include <fdtdec.h>
index 8b1149997a19d67dab33d603233e2158b1bd3b7d..9a3dd7ec4a94659b71ff268b981efce56f9639cb 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 
index bb2935f8ec084893860e2f8fb4a2f2e7d3811204..be90a7b24a8e82ef7ad41549886568eaf7633acb 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <i2c.h>
+#include <malloc.h>
 
 #include <asm-generic/gpio.h>
 
index 6b7ce985b3aaa4a6754da4295bed6f14cf21bb6f..a03c465c8f3ff75393eeab7bb3e2de1de2290f1c 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/imx-regs.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <asm/mach-imx/mxc_i2c.h>
 #include <asm/io.h>
index 05d0dc601210ebf788569f701db9a9f82443cbb5..b877602aab6f9ecb78fdb20b5b99fade649b4513 100644 (file)
@@ -17,6 +17,7 @@
 #include <i2c.h>
 #include <asm/io.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 
 #define RCAR_I2C_ICSCR                 0x00 /* slave ctrl */
 #define RCAR_I2C_ICMCR                 0x04 /* master ctrl */
index 21dfa5023bdf94428c67d82cab2f4467c6c39fed..7d046c1a1e62a5bedb091d08b080e810c8bfdebf 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <reset.h>
 
 #include <dm/device.h>
index 5ce0f869c70631e6a34389fbea2755abdc57b8be..149bd327bdfe7ab42d4513de69adb33c8aa80013 100644 (file)
@@ -15,6 +15,7 @@
 #include <i2c.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 struct xilinx_xiic_priv {
        void __iomem            *base;
index 93f6b913c6477de33a82387f8c24c95bd2faa53f..af6b8245c97d591b244a43aefccf45281f754199 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <led.h>
+#include <malloc.h>
 #include <asm/gpio.h>
 #include <dm/lists.h>
 
index 1194c6f029cade10da9e17322538dcdcd52fd655..a560209f035f264c26269bc3a3880c89f66e6dfd 100644 (file)
@@ -7,7 +7,9 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/types.h>
 #include <linux/bitops.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
index a6d2d1f5b8330d109c358f2a1c8b0f1723f2b089..291f5c218e536166936c4f99fc00cc17ecbe51b6 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <mailbox.h>
 #include <mailbox-uclass.h>
+#include <malloc.h>
 #include <time.h>
 
 static inline struct mbox_ops *mbox_dev_ops(struct udevice *dev)
index ba1bb1cf957bd0245b4aef80b5cd01228b86d9ee..faca8fcc441c97c1c6718117c96b13812e134ca9 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <mailbox.h>
+#include <malloc.h>
 #include <asm/io.h>
 
 struct sandbox_mbox_test {
index 442ca633a19a10fa050e61966382d92da76e6a85..25e23eb05b765f4fa0ae28b607679a7da99f7f04 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/mbox.h>
 
index d4035a85f2f2c013a3feb780ff92a1885dd9ea73..13e642ab70347419be385f0b7b74741f399549a8 100644 (file)
@@ -7,7 +7,9 @@
 #include <clk.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
+#include <malloc.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 /*
  * IPCC has one set of registers per CPU
index c463e6a2be5c4e33ebeaedbaa0fe916d408165e4..60f6a38321e1ce364b825b0680715312019b1db9 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
index c181a7b817682c597f79ed62c112a9e845a0ea91..17b46545f5f9d7df46fdde18c33bbed4d5238c43 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm/io.h>
 #include <dm.h>
 #include <mailbox-uclass.h>
+#include <dm/device_compat.h>
 #include <mach/sys_proto.h>
 #include <linux/ioport.h>
 #include <linux/io.h>
index b34191753b1becccc95dc9fd0e009fc2f9025757..3ad21c1ea0a4a4a9c518206caffb7f766e7e23d2 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <hang.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <asm/arch/sci/sci.h>
index c19c3c0646b793018a4c943abd4ddcaef8eb89c2..47e42738e04764a093e5344c471f5ccafb01be74 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <i2c.h>
 #include <k3-avs.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 
 #define AM6_VTM_DEVINFO(i)     (priv->base + 0x100 + 0x20 * (i))
index a198700b5f5391447deca81d68ad98edef6c4aae..9fe0aca34264e373fee0bc5aa52a8e3a971d89d4 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <p2sb.h>
 #include <spl.h>
index e7efcdeafa3434c2ebebb39337a09e78ce6cf4c9..980b84453e1973efed2cea8778f2528fc81d26f4 100644 (file)
@@ -9,6 +9,7 @@
 #include <misc.h>
 #include <stm32_rcc.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 
 struct stm32_rcc_clk stm32_rcc_clk_f42x = {
index 489337c3d0b0032bdf4a4e4f0b992b67ce1509b1..ce2b92517385f00d0069c7f401dbc797d559752d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <time.h>
 #include <dm/lists.h>
 #include <dm/root.h>
index 9f5baa5288542e91a482c50df16df77a326d53e4..53d7e1d154a367ed1d93c6b0effb9f2d2fbc13a9 100644 (file)
@@ -6,6 +6,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/read.h>
 #include <asm/io.h>
 #include <linux/delay.h>
index 6053d3d536e6a29a67772b6415c46aad9a432f4d..aad9d8b85b461ebd125837b21c8381b9666d31db 100644 (file)
@@ -12,6 +12,7 @@
 #include <power-domain.h>
 #include <regmap.h>
 #include <sdhci.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 /* CTL_CFG Registers */
index ea8eb0d5091dcfa949b763ebf167bb5d6dc5d445..d396afc14cefd3b162760c9ac4eab3f7bb960b1a 100644 (file)
@@ -16,6 +16,7 @@
 #include <errno.h>
 #include <malloc.h>
 #include <mmc.h>
+#include <dm/device_compat.h>
 
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
index 7f70acaf3996082ced9c41c3867a586c22e60f41..8cebf99c589dc6db12fe71f3c632bdfa452ebca3 100644 (file)
@@ -36,6 +36,7 @@
 #include <asm/arch/msg.h>
 #include <asm/arch/mbox.h>
 #include <asm/unaligned.h>
+#include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 112f1150158c3f453001bbe615bdd4dd966eb3ac..ab40019ccbea866b7ff96aa01cf020e3d79a90b4 100644 (file)
@@ -22,6 +22,7 @@
 #include <fdt_support.h>
 #include <asm/io.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 7cbd6e458798c0a8598484973a867cd6265f34fe..4900498e9b6b22675f596709d4957bb5ccd3b27e 100644 (file)
@@ -19,6 +19,7 @@
 #include <hwconfig.h>
 #include <mmc.h>
 #include <part.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <power/regulator.h>
 #include <malloc.h>
index cb2a7c3eb5e1602911f909a163f268808e18fc5a..8d4f886cb49ae589e54b20110822bfa95be7fcd3 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/io.h>
 #include <asm/unaligned.h>
 #include <errno.h>
+#include <dm/device_compat.h>
 #include <mach/jz4780.h>
 #include <wait_bit.h>
 
index c7a832ca900a6bfe0b8cee2aa17e6d351ca8cd2f..0b90a97650148da0b05a96e6c1a5c39b246210c5 100644 (file)
@@ -8,7 +8,9 @@
 #include <mmc.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
+#include <linux/compat.h>
 #include "mmc_private.h"
 
 int dm_mmc_send_cmd(struct udevice *dev, struct mmc_cmd *cmd,
index cae42ec4acebb75f192f977dc314510dc86337df..da3ae2ec3585e5ba214ca29d0773114517f4128f 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <sdhci.h>
 #include <wait_bit.h>
 #include <asm/io.h>
index d4870818a806291e85e8e492cd52d4a48f3b62a3..bd1fb09d1c9baa81469c933f5f8c60d51b32a258 100644 (file)
@@ -15,6 +15,7 @@
 #include <mapmem.h>
 #include <stdbool.h>
 #include <asm/gpio.h>
+#include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
index e01ac310e9ff346aabc6cdfdbdda1542d1847771..c3b13136f80aed1f2eb36393689351d1cb598282 100644 (file)
@@ -6,8 +6,10 @@
 #include <common.h>
 #include <clk.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <mmc.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <linux/dma-direction.h>
 #include <linux/io.h>
index 4736263bf2a690c285bad5c33d32e133d31fb68d..e9108dabd1a7de19283048f987adc6eda8e1a143 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/bitfield.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index c8875ce8f8150950566c6b18869b30738b5640cb..29bbb4b3a6f9d3ce57ea068d5e6ca1faf94cc210 100644 (file)
@@ -13,6 +13,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <malloc.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/io.h>
index e38e8abfef40a9e1aa66f421ecbfc2ab356d930a..2202158c88afa03fdb42109bb5fe2ceefd3035ea 100644 (file)
@@ -13,6 +13,7 @@
 #include <malloc.h>
 #include <mmc.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <linux/compat.h>
 #include <linux/io.h>
index 5a413f0ec7837f700f40524bf46de1595b32e180..c606ef011bff614d9e99350efc8d50d48aa9a84a 100644 (file)
@@ -13,6 +13,7 @@
 #include <dwmmc.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <dm/device_compat.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <malloc.h>
index 568a3e77d372d981d143085fb8c15c3f6a1ba169..786cdc700a56b7486b9096cf2e0cf6250fc04d0a 100644 (file)
@@ -11,6 +11,7 @@
 #include <dwmmc.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <dm/device_compat.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <malloc.h>
index 0a7a2fe624881de23ffe285d59ea7c466f87f73a..6f3b2ad653ae7c7c623a48219dbb1259539c614d 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <linux/libfdt.h>
 #include <mmc.h>
 #include <reset.h>
index 5a8506dcb6bdecadaccbb5db5690be5682e9997e..092b740f564eefb01cedd8d635f545019688ba4b 100644 (file)
@@ -11,6 +11,7 @@
 #include <fdtdec.h>
 #include <mmc.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <linux/compat.h>
 #include <linux/dma-direction.h>
index 8f89bda2331c35c13e51ded41e9d2530874743d2..4dbe71fa2e1ef081368f91daae85fd6311a8b103 100644 (file)
@@ -7,8 +7,10 @@
 #include <common.h>
 #include <clk.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <mmc.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <linux/dma-direction.h>
 #include <linux/io.h>
index 83c32a361a5b9a850ecff58c3f2e292a52a97a44..24fabeee953d78eee44994b2cdb8de66c0115aea 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include "mmc_private.h"
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/libfdt.h>
 #include <malloc.h>
index 5a560f1253bac60bae9aef235b0a1b5bcfa37141..846b0e832b75f883192d52341653eb7b766aa552 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <dm/device_compat.h>
 
 #define FSS_SYSC_REG   0x4
 
index 17df8b0ffceef83688dfe604889010fab6d04423..db20a6b0b245182ce41110389b646a1b0e94177b 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <env.h>
+#include <malloc.h>
 #include <dm/device.h>
 #include <dm/uclass-internal.h>
 #include <linux/err.h>
index 3abaef23c53999f48f9fe9f9de332c357ddd1f10..bc0accf8c66e25ac01988b4be906a7263c4a726f 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #ifndef __UBOOT__
+#include <linux/compat.h>
 #include <linux/module.h>
 #endif
 #include <linux/mtd/nand.h>
index 35265853496bb88b35a190b094037ac945a3caf6..996d3dbb710f340b4e53e5265e34c053b6aff21a 100644 (file)
@@ -13,6 +13,7 @@
 #include <common.h>
 #include <asm/gpio.h>
 #include <asm/arch/gpio.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 
 #include <malloc.h>
index d3e39661e1a92bfb35d4b10c72f7e3366d44cb3f..5232328e1e4a21308b8b8b29e14f2158d166cffb 100644 (file)
@@ -17,6 +17,7 @@
 #include <memalign.h>
 #include <nand.h>
 #include <clk.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
index bb8aea2d0192dde3a73f4938ed65299812fe589e..c58679834ed02194b94854bbbfb33623cad43373 100644 (file)
@@ -1,8 +1,9 @@
 // SPDX-License-Identifier: GPL-2.0+
 
 #include <common.h>
-#include "brcmnand_compat.h"
+#include <malloc.h>
 #include <dm/devres.h>
+#include "brcmnand_compat.h"
 
 static char *devm_kvasprintf(struct udevice *dev, gfp_t gfp, const char *fmt,
                             va_list ap)
index 235a5fcd52b2729edf61f06ea80faeb3fc64a8bb..f51d3e25c762c28b867b16293bad46fa66c67d76 100644 (file)
@@ -7,7 +7,9 @@
 
 #include <asm/dma-mapping.h>
 #include <dm.h>
+#include <malloc.h>
 #include <nand.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bitfield.h>
 #include <linux/dma-direction.h>
index 759ad40e517871e4b543ea33a37d49d4865e07b0..41b93e660a0ac6e9e2bc116ba963af2c85e45260 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/io.h>
 #include <linux/ioport.h>
 #include <linux/printk.h>
index e179a780dbeac3ebdf7aaa37fba2f95259c8de1b..03f210bdb0b3f9bcc998505f370a98dfc14cc733 100644 (file)
@@ -10,6 +10,7 @@
 #include <malloc.h>
 #include <fdtdec.h>
 #include <nand.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/errno.h>
index cd5c31e76b47c89eb8ee0c9cbb3fa779e14d6bd9..9b99be10e6e3c8838df675137cd20c1f041643fd 100644 (file)
 
 #include <common.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <nand.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 
index 74acdfb3081248a9870517ab48e58cdaa8109b29..ae699d1da51b69d851ff5da5c3a6ad29c5db177c 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/arch/clock.h>
 #include <asm/arch/funcmux.h>
 #include <asm/arch-tegra/clk_rst.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <fdtdec.h>
index 3326c2b096bf50f452a4f2e341f32fdc5e979863..52c8a94778cb664998b6d3f597e7e3dadaa199fb 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <common.h>
 #include <malloc.h>
+#include <dm/device_compat.h>
 
 #include <linux/mtd/mtd.h>
 #include <linux/mtd/rawnand.h>
index d976c19b7ac1a74baa14795a73d4b947d59cb86b..cd624ec6ae64926223354dfb0864ffb21c79146b 100644 (file)
@@ -24,6 +24,7 @@
 #include <errno.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/mtd/spinand.h>
 #endif
index e329c3cfc0d95b38a0a3c3110de9888253dea6e1..0b228dcb5b1d4a4488732929d123ed55e16753e7 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #ifndef __UBOOT__
+#include <malloc.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
index 1119677f6f601b8f9470b922c6dfae525f4b2460..67d092be2cf191b649b60c4daa16c1d99bdd769c 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #ifndef __UBOOT__
+#include <malloc.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
index 9c24542f962153e081eaeacec2863c679ecb5e4c..687306e33e685ff75c3272e70b9323b44bd43947 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #ifndef __UBOOT__
+#include <malloc.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
index de9352e48f1c8b6e4c8ca26f1e800fe93c516ba6..6ede98c85d217b2b9d61218b0c073c9344dac8d0 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #ifndef __UBOOT__
+#include <malloc.h>
 #include <linux/device.h>
 #include <linux/kernel.h>
 #endif
index f5c6515c9bf529fb7b7cd252873296657b031430..fc2aa22d7f3847e6614576a6244b418733f0a157 100644 (file)
@@ -8,9 +8,11 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/of_access.h>
 #include <errno.h>
 #include <fdt_support.h>
index c6107522be033eb8c0a0ed3dd94f093e2cf04bf6..5ebcca590a2795b8db187889d2dfb9f61e90a0bc 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <spi.h>
 #include <spi_flash.h>
 #include <dm/device-internal.h>
index b27e442218cd8f3eaa7f605ce182c66b888663fd..7b6ad495ace34c221c3ae188f7c82e74ba1fb95c 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/errno.h>
index c19d468d62cfa8f00a7496aff72dd72f574e4d83..ccc0ab07af5a705a12199d9e22a49335e707c245 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/log2.h>
index aec2613a095ffa49209ec3f98f484abac40651f0..d2b7ca5e33fd0b42aa1649396a40c120f3cdedf3 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <hexdump.h>
+#include <malloc.h>
 #include <ubi_uboot.h>
 #include "ubi.h"
 #ifndef __UBOOT__
index 685324d7d2ccd00bcd5b442f48a612d291b825bb..3f7ee59c946b6962ad61da7e25c524623c816fcf 100644 (file)
@@ -7,6 +7,7 @@
 
 /* Here we keep miscellaneous functions which are used all over the UBI code */
 
+#include <malloc.h>
 #include <ubi_uboot.h>
 #include "ubi.h"
 
index d0a6a1bd186ff8bb93ab17473eb46c1f2898168c..0f7951c8590e8aa527d22bd479d2749fb8936289 100644 (file)
@@ -26,6 +26,7 @@
  */
 
 #ifndef __UBOOT__
+#include <malloc.h>
 #include <linux/uaccess.h>
 #else
 #include <div64.h>
index 7100e68bd20a385a83621f5a0d02d641ea6e5e6d..fe3532930aa4112e22e708a668b89e915214761b 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
+#include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <phy.h>
index 110985ed1dc247db4398ffeeb88da4c6aca26c3e..1200049007e9739f474fa5a9f32d84bd04c3ed43 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <dma.h>
+#include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <reset.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 #define ETH_PORT_STR                   "brcm,enetsw-port"
 
index aa33fd511b2c7f2a6be9fbe163e7238b1a8d05b4..baac277a84dba0d722a95036900492095b891675 100644 (file)
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <pci.h>
 #include <reset.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/compiler.h>
 #include <linux/err.h>
index 46321116352a567463db5368afb17a0102707c53..0564bebf76c007ae2fb37c819febf371951b731a 100644 (file)
@@ -31,6 +31,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <miiphy.h>
 #include <net.h>
index 66a5f95112edb636ed39ddda0e1f629516191eb3..e93561dffa871d32be7faa798bd10dec1c81b637 100644 (file)
@@ -14,6 +14,7 @@
 #include <reset.h>
 #include <syscon.h>
 #include "designware.h"
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #include <asm/arch/system_manager.h>
index 09460118445e02c551da5420c78c366aaad1cd3d..9212920549dd617f45ae5875aa22c45c549f4de4 100644 (file)
@@ -33,6 +33,7 @@ tested on both gig copper and gig fiber boards
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <pci.h>
 #include "e1000.h"
index aecd290d72939f4a34a6348a85aec0c99e48b0c2..52b3c79794aebd5f4d7aafd4f03a4376960da287 100644 (file)
@@ -1,6 +1,7 @@
 #include <common.h>
 #include <console.h>
 #include "e1000.h"
+#include <malloc.h>
 #include <linux/compiler.h>
 
 /*-----------------------------------------------------------------------
index c51354cfa14a5feda1bbbf9393d383f81fda0d83..e161b4e077ac14aeb40b35caf9116223ff913a95 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2014 Freescale Semiconductor
  */
 
+#include <malloc.h>
 #include <asm/arch/clock.h>
 #include "qbman_portal.h"
 
index 8ff43a91c7620c15cc3b6d7d536fdbc51b572da7..07bbcc9b2311b87e8dd57bc1653284f0831f4357 100644 (file)
@@ -8,6 +8,7 @@
 #include <cpu_func.h>
 #include <env.h>
 #include <errno.h>
+#include <malloc.h>
 #include <linux/bug.h>
 #include <asm/io.h>
 #include <linux/libfdt.h>
index f0d15febcc8e0fc65664bafc65d166c6053b8329..bee73153d0efeaf5c1abe0506ae33023f392cfe0 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <asm/io.h>
 #include <pci.h>
index ebb74339b27ef5bd248bf613c43c0f93a1df5d5f..40e6b3ba3950e94833b1940b955e2a6b2ed041e4 100644 (file)
 #include <clk.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
 
index 897741ab821c32f29953859cc0c3cb549f86e71f..0c1dd6834a3c75a70e4c164e88ce750f94fdcb94 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <cpu_func.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
 #include <console.h>
index 665517775e8122bfd372ab91d2470d31849eb627..33dd002146c1ee035f5b660f9e58993199ade696 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
index dffe81d873500e2adee0d2af96f4a608c571f682..9d24c005c12d2f3496da07d37124caf614252225 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
index 0ba84ab78a0b3b027ad043f335add4e060313f96..fe48f371c319ecde951e1349783e8e8727f0dbc4 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
index 1a21360a9669b7a0e190fc467171902d79026271..f05fa42ff3f4f58b5df3f7e7ca84f934d377bd87 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
index d20ec49d5610d3c46825d2df22443bf835161d40..bf95a38354d6b8f933f03f33ca5bbbe78bc0aec9 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
 #include <fdt_support.h>
index c22e590387bf8d9267c0a57467de4e32b545c560..77589b2a04df4f54480f66b0ab20285650e65d02 100644 (file)
@@ -17,6 +17,7 @@
 #include <wait_bit.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
 #include <linux/mdio.h>
index 505fabd3fa685dce36fd70354ed0886af6793782..d737400a20d93f6dc65865c608ad300cebd6d969 100644 (file)
@@ -20,6 +20,7 @@
 #include <config.h>
 #include <malloc.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/errno.h>
 #include <phy.h>
index 105fdc994abd5e40fb4d7752a02329ca5817bd46..fcd24868af48605c25e0ec5bf0fc639e970e6c3c 100644 (file)
@@ -17,6 +17,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <net.h>
index e4507bf7fd34b7232fad4ed2396f5a19dbf9fa4c..b2823701a4118cdf9a76fa867ce696ffe8d5e779 100644 (file)
@@ -9,6 +9,7 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <pci.h>
 #include <miiphy.h>
index 14a8c68276a648cac7793de3de01a9d0f43a0256..f70a23521776ceac9bcb389117e162df32477f3b 100644 (file)
@@ -4,6 +4,7 @@
  * Copyright 2017 NXP
  */
 
+#include <malloc.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
 
index c525674fb8826fbb98f0ee315603734ce9f74c70..1b5d11ef323c863aa0f31bd467a724b1f71db53d 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <net/pfe_eth/pfe_eth.h>
index e4563f192bf21f2b53b042c8ba482a12cb6a319e..13112d9c1a35bb69f51df53f94d4fb9d10d91a7c 100644 (file)
@@ -10,6 +10,7 @@
  * files.
  */
 
+#include <malloc.h>
 #include <net/pfe_eth/pfe_eth.h>
 #include <net/pfe_eth/pfe_firmware.h>
 #ifdef CONFIG_CHAIN_OF_TRUST
index 62309670fabf3591d3babb20ae3a875b7532cf36..b990e7fbe222423f446ddeaf783f24740ff2ca8f 100644 (file)
@@ -5,6 +5,7 @@
  */
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/platform_data/pfe_dm_eth.h>
 #include <net.h>
 #include <net/pfe_eth/pfe_eth.h>
index 0ae0edd0e1723ae4888bde60b51d035a5e6c097a..9d9f746e1dba9ec2f7a33b3b89fb840878a42f5f 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <config.h>
 #include <common.h>
+#include <malloc.h>
 #include <phy.h>
 #include <dm.h>
 #include <fdt_support.h>
index 3458440b6ff7ff59924cc7a0d36b6f6063131d1a..e966be038a644a4ec6ebc842426301898ec6af1b 100644 (file)
@@ -7,6 +7,7 @@
 #include <cpu_func.h>
 #include <errno.h>
 #include <dm.h>
+#include <malloc.h>
 #include <net.h>
 #include <miiphy.h>
 #include <console.h>
index 0086f25fc1fa8c8cf8354d41b9aaec2819fb07d9..fb1ba5a8c83a79939673006fdb0334f9e3f76331 100644 (file)
@@ -8,6 +8,7 @@
 #include <asm/eth-raw-os.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 
index 64e92abb03eb0fd45de959c090938c62db0720fd..5d66a63a8bf337df00411c9b679287d08eb0b85c 100644 (file)
@@ -8,14 +8,16 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <fdt_support.h>
-#include <linux/err.h>
-#include <linux/io.h>
-#include <linux/iopoll.h>
+#include <malloc.h>
 #include <miiphy.h>
 #include <net.h>
 #include <regmap.h>
 #include <reset.h>
 #include <syscon.h>
+#include <dm/device_compat.h>
+#include <linux/err.h>
+#include <linux/io.h>
+#include <linux/iopoll.h>
 
 #define AVE_GRST_DELAY_MSEC    40
 #define AVE_MIN_XMITSIZE       60
index 6f10578c884acf9b877493b8e604713348379a35..1ae776b4464375ddf5b443a93b3ca9ad2c05ea49 100644 (file)
@@ -18,6 +18,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdt_support.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <malloc.h>
 #include <miiphy.h>
index 9a5f7fd3c7bcbb80458b5746736f1f411017c745..a9874e4220d4d9cfe46e05442caa270c10837043 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <malloc.h>
 #include <miiphy.h>
index 25904868102d3ee9d536f7ebb21b1df3f01caa6f..2b77213001f5a2d7c48bf1e05a9ee56fbad9928c 100644 (file)
@@ -7,10 +7,12 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/processor.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dma-uclass.h>
 #include <dm/of_access.h>
index 21b8bbda3d5b61cd900642c5c9cf0fc109c8a347..ca93edb70e3183ea1e58123bedb377d3beff8aa6 100644 (file)
@@ -10,6 +10,7 @@
 #include <fdt_support.h>
 #include <asm/io.h>
 #include <cpsw.h>
+#include <dm/device_compat.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 57625623c262361f77c2231ff8ffa1134a45efa1..04b01a81298f578abae507768ac50cc9d1e8396e 100644 (file)
@@ -14,6 +14,7 @@
 #include <net.h>
 #include <netdev.h>
 #include <cpsw.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
index 6e8f6520118f65c3c7d0e7d42fb5183ce8ae18da..1fa520be0f281105e801031150a1957913a552be 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <miiphy.h>
 #include <wait_bit.h>
index 3d9d5205a1aa1ead8abd7e132fd3a3c9ac5cb158..288037e2a0f5af01f2a2d216e0ef3382af6f26ac 100644 (file)
@@ -25,6 +25,7 @@
 #include <asm/system.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/sys_proto.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 
index 2593eb174bf190e9a65d4e42d900a9fb2aac12aa..ef4382da1a1f17f9d9ebebd52dbbc83dfceb178d 100644 (file)
@@ -8,10 +8,12 @@
 #include <cpu_func.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <pci.h>
 #include <time.h>
 #include <dm/device-internal.h>
+#include <linux/compat.h>
 #include "nvme.h"
 
 #define NVME_Q_DEPTH           2
index f1527ac6679c2de3b2f7d67612a02f810c9a6d0c..d678e0b599c0c6511f63a665bd88681121af66d4 100644 (file)
@@ -29,6 +29,7 @@
 #include <pci.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
+#include <dm/device_compat.h>
 #include <linux/ioport.h>
 
 /* PCIe core registers */
index 5f318120e16a81806b3c4cfee4f8ad16f8504c1d..e2882e3b634f777afb8a988c55c602d88f51c8a8 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <pci.h>
 #include <asm/io.h>
 #include <dm/device-internal.h>
index 7d9ad34e9d2e24008d0b651ded3a3ec4905797c6..483a87db7dd621cffd4600dbda7d19db7e9dc165 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
 #include <dm/of_access.h>
index 8cfd0719074d5887149d8fcd90c590b87700c8ca..f62264cbba752ddb968fb80e5c3db99e85134d23 100644 (file)
@@ -12,6 +12,7 @@
 #include <syscon.h>
 #include <asm/io.h>
 #include <asm-generic/gpio.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index f516ec0576e3c766e18bf8c05454bea3ae862dfd..dc994b748ad532dd19ef0ca5e9eb7da3569b55ea 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/fsl_serdes.h>
 #include <asm/io.h>
 #include "pcie_fsl.h"
+#include <dm/device_compat.h>
 
 LIST_HEAD(fsl_pcie_list);
 
index 8e1713a2d1d5aa73cc0c1597da788aa9c28cda13..f34a157902fc837acee71137eefbd9859895ac54 100644 (file)
@@ -11,6 +11,7 @@
 
 #include <common.h>
 #include <init.h>
+#include <malloc.h>
 #include <pci.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/iomux.h>
index a1f6e95e69f245f6cc08218e5f7b9c293b250808..6a9f29c5c805b3a69c87506ab524e43feacdb437 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <pci.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 #define RP_TX_REG0                     0x2000
 #define RP_TX_CNTRL                    0x2004
index eabcb66dd07d4e63c11db4bf1290dd81e5dc3b0b..d8a32d53f63289906645e3c6bf010314dafd79bc 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <pci.h>
 #include <reset.h>
 #include <asm/io.h>
index 2c12fa6976d59ba5b553cfaf85d535ab74705afe..612c428cf56888bda0362ca2e6f7c8542378b4c5 100644 (file)
@@ -21,6 +21,7 @@
 #include <asm/io.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/cpu.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #define REG_ISCR                       0x00
index de055a3585f77280e3d4cf508638cd867d639565..2de343de290bfcc31cc586947a8c11b3e03d5833 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <power-domain.h>
 #include <reset.h>
 #include <asm/io.h>
index e7761e3b286ce4323a4cc818c1f705a2e2f285e6..ed9f02b375cf57ff8b0704fd3f3dbd10bf786806 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
index 189a1c11d385251f383fe4534f4a4d16f75cf737..f0fda0290e9032cd4879752d81b69f69197f9031 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <dm/device.h>
index 99da97aa0cd106ab67904526e9de9eac342425e7..53d1f45bb96f933610d2bbacb7b0c9da44d438d1 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <power-domain.h>
 #include <reset.h>
 #include <asm/io.h>
index d52f42df841d060dc40359040649c1efb43005ac..244beef18ddaaa252c5b9dc98d0a6bfb91620b7a 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <asm/io.h>
index ad1a77fcfcaac35711143ae27590ae9cf5340a98..c23bc87d0f816faa1b5ffabaf3d91e38756fa75f 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <bitfield.h>
 #include <dm.h>
index 920675dc999518ac70c9f9f19818740bfff8624e..82655f26dd6e1a40efa2a11affb1ff6ee0729cd5 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <regmap.h>
 #include <errno.h>
 #include <asm/io.h>
index 86e69c73ba26ba5b487ea4ff7b189c7c88aeac73..c98d12b627da3da9910086d083d66d40e8eba9bc 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <bitfield.h>
 #include <dm.h>
index 5cbbd4d8f7ba49d03596cd112df15ebe6f921a9c..c2a8593b39f51518a3f7da8f7ee0ed741be6a134 100644 (file)
@@ -8,6 +8,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <bitfield.h>
 #include <dm.h>
index 255d722ff737f357455b347d2d8a876fb61ba5a5..bd089b7a435176f521952920a64f1cedc6cc69ce 100644 (file)
@@ -9,8 +9,10 @@
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 
 #include <dt-bindings/phy/phy.h>
index ee70b81d882a85279ec6787de3d71c59ef6d8298..e93130aee610abfc8d3192fffb956cc7822bda4c 100644 (file)
 #include <dm.h>
 #include <fdtdec.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <reset.h>
 #include <syscon.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <power/regulator.h>
 
index b662935626404c9422f0303f613aeddc4db8d303..ce39cd8f9e25076338b189d0a590db1e8f7f428e 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <reset.h>
 #include <syscon.h>
 #include <usb.h>
index 6f1119036d787573bfab94ab803587087c238616..6ba37213cb8cd8413ab89f2d599b51ed368dd8d0 100644 (file)
@@ -13,6 +13,7 @@
 #include <syscon.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <power/regulator.h>
 
index 1c7db0dd0fdb5f7420edf05ae5cfba54ccedeee1..0b2b2410b27ed77d05c1b763a995e63da6ddaf45 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk-uclass.h>
 #include <dm.h>
 #include <dm/device.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dt-bindings/phy/phy.h>
 #include <generic-phy.h>
index 48c0b6b3747c3b552ed8667b0e2ab50dbbdb83b5..6c8a990f57b057219eb71409298d2d915beb0fe8 100644 (file)
@@ -4,6 +4,7 @@
 #include <dm.h>
 #include <regmap.h>
 #include <syscon.h>
+#include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 
 #define BCM6838_CMD_LOAD_MUX            0x21
index 42618cfeda7d9d4b20f4a12dc7849b67662bdb5f..168595a3e121fcda0a5f221eb4714b4e8eca5831 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <dm.h>
 #include <irq.h>
+#include <malloc.h>
 #include <p2sb.h>
 #include <spl.h>
 #include <asm-generic/gpio.h>
index f664d76b54ec4c9f1b879e43010d2d276929ceb7..7fbe2810a2923784faf275652571220c7b413a8e 100644 (file)
@@ -5,7 +5,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <fdt_support.h>
index 2d76c41deae3ea60103908ccf759ff4dfca58274..90c54b45c3e345b7d0f3253a328a1a4525e5d7a5 100644 (file)
@@ -14,6 +14,7 @@
 #include <config.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
index ee6a9d1fc80493b6560b1ade453ffe0bd51fd157..e361916eb2856a57cecee2008fa5b3dd069e3465 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/pinctrl.h>
 #include <linux/io.h>
 
index da1f091aecaaf13a05cc71e7996a0afa4361a1c3..6e0bcae991282f683e740b45ac67bd1fea0e02d7 100644 (file)
@@ -19,7 +19,9 @@
 #include <common.h>
 #include <config.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
index 77a8a532027a732b11a36aa14c9df74b1c1c91d3..474c38a0497601c0aed35f178fbf951f10fa2321 100644 (file)
@@ -4,7 +4,9 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <mapmem.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/io.h>
 #include <linux/err.h>
index 5147bdc3cc87e18cf1e2708fa4db42a6ae562509..8d61dfe863941d807cf56be6f1b04407ba7c9d61 100644 (file)
@@ -5,6 +5,7 @@
  */
 
 #include <common.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/io.h>
 #include <linux/err.h>
index eecf0f5dc183b17470e76d122b23cf52d83d1fc8..1098366b5f4bb089051f2b05ed3614e952502657 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <dm/pinctrl.h>
 
index 1dfc97dceae5a4f3d9e1a09ed1d0c1966108aca1..380b0da27141588a9fd3b9020f1c4fc89582f65f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/pinctrl.h>
 #include <linux/libfdt.h>
 #include <asm/io.h>
index 0b5a0433cd03497b76f645bd87b8b3da15ecf43c..c8e61e2918d4d493e3894aec257e036f0fd023d9 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/gpio.h>
 #include <dm/device.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <linux/bitfield.h>
index 3425ed11b16479942a807234d3eda92a861535ef..aba881047479849b95f5866b04f723a69791f0c7 100644 (file)
@@ -4,6 +4,8 @@
  */
 
 #include <common.h>
+#include <malloc.h>
+#include <dm/device_compat.h>
 #include <linux/libfdt.h>
 #include <linux/err.h>
 #include <linux/list.h>
index e0380c349a77bfd59861e49a78425b26d8266ebb..9926235b52e0067626e332cc3f2c0d272bfd698e 100644 (file)
@@ -1,9 +1,11 @@
 #include <common.h>
 #include <dm.h>
 #include <hwspinlock.h>
+#include <malloc.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/pinctrl.h>
 #include <linux/err.h>
index 5ee11615de26e31e2ce1264ba6ea02e7d5eb54fe..ab64f4f0c86796080fd19968b74591a88ec968c9 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/pinctrl.h>
 #include <linux/io.h>
index a5935e84de3e15fa22bccd81a568da9d16e90468..abeba965c4996197ec159ec6c0a46ad6c468e24b 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/io.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
index 425451e4cd698443f418a7f50f7b2f9b7b3c6afb..a6426bee27f94599df2cbe731ec171b24d690158 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 
index 74fcb05c15b8fd3c5efec089f5a66aca07a5ab85..6f01a60b3467a0765d2efc59317d289554a5030d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 #include <asm/arch/power-domain.h>
index 8e328f02c2ca24887a6941925cbe4c45bb6812b5..571146e19d2696c4ee8db64f30a9d952f9d96f8a 100644 (file)
@@ -6,6 +6,7 @@
 #define DEBUG
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/arch/power-domain.h>
 #include <asm/arch/sci/sci.h>
index fbfd17718bcdf7606c277cdf2ef11358f79bdb7c..5b6467cda70ea11cc22f14362edcec50fa3565fc 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 #include <asm/arch/power-domain.h>
index aa118665911907fb4ed6eba3fdfb44b3cbdb6fdb..7082c80bfab09d4befc99b8a5571a6aa5082e000 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <regmap.h>
 #include <syscon.h>
index 02f73548d6e489c3cbaa64d9617a13d05a0a5005..12cdfcdd1f51c4b47711022ec7596a828237d251 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <regmap.h>
 #include <syscon.h>
index 789fc5ab64f7a96b97be9d82473cdfeccc213bf7..3ff7ca1befadada704108779c14a2fe5e28abde3 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <regmap.h>
 #include <syscon.h>
index be0a8026f6971ae56041f88bf1e9ef36b2ec03da..d9c623b56e772cb9fea84519aebe1faaec02d510 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain.h>
 #include <power-domain-uclass.h>
 #include <dm/device-internal.h>
index 148b6b1707d4696c70495e60a0983e5c6525cda8..2191a9414694f31b53ece4877c52ed9dc78ab54d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain.h>
 #include <asm/io.h>
 #include <asm/power-domain.h>
index a5ae235d539f098b801a60242f46475ec2306e54..3a834a9f1ee5fd658ad26497b9e19614d1e25e9b 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
 #include <asm/io.h>
 #include <asm/power-domain.h>
index d2a25ca33339dc39a44cb52ab7b01d39a4ece2ed..e87244197f8fccc82fccfdaab0cd535e1010851d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <misc.h>
 #include <power-domain-uclass.h>
 #include <asm/arch-tegra/bpmp_abi.h>
index 3866db589a85e1f706a4dda7f642983df271c5b4..a5866703ae37899d9a69d0d32d6cf72755ff8470 100644 (file)
@@ -11,7 +11,9 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <power-domain-uclass.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include <dt-bindings/soc/ti,sci_pm_domain.h>
index 11304d2146af436d5de47be9071c1e2f52a25b6c..a5f855ce2a3187470c33f727f825d8fee48233f9 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <i2c.h>
 #include <power/fan53555.h>
index b58c8302cf726ed92f349fad1636f6febc0e7cfb..86d7b89b1f02e8032bf317432a4b3373027d1563 100644 (file)
@@ -8,6 +8,7 @@
 #include <errno.h>
 #include <dm.h>
 #include <i2c.h>
+#include <malloc.h>
 #include <power/pmic.h>
 #include <power/sandbox_pmic.h>
 
index 2297af4157a4513fc631174cd4708026bd85f64b..2c85410b1bf539d33d9ed7d7ffe2419ef9b85727 100644 (file)
@@ -11,6 +11,7 @@
 #include <sysreset.h>
 #include <time.h>
 #include <dm/device.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <power/pmic.h>
 #include <power/stpmic1.h>
index cd05c9b6035dfd0d41e3bb5d04c2dcb7fea7ffca..4030144dd3618a544429809211c7e074c55eba08 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <pwm.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 645528e84e86a982ff9217dc9e8c7867f89bede4..08a10f05b412f3fdf89faa9dd3872d4cfbc4b097 100644 (file)
@@ -10,6 +10,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
 #include <power/regulator.h>
index 2c076c0db5bf8c6cae6dd5288996df77dc4b675f..ce54495490d179513d8e1d925e55d6df7ff3f3a5 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2c.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 
 #define TPS62360_REG_SET0      0
index 7015d8cfe72c970956c0d5e803388007e9269f49..8cf74861a8a4e8fa5b487eeceddeb4f45a344599 100644 (file)
@@ -14,6 +14,7 @@
 #include <power-domain.h>
 #include <dm.h>
 #include <asm/arch/sys_proto.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 #include "k3-am654-ddrss.h"
 
index a9b7d40890b3cc9c004f28a39b163a3ace82c23d..352483c4d7419519c70b1a34a56e0080fddd498b 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <power-domain.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 
 #include "lpddr4_obj_if.h"
 #include "lpddr4_if.h"
index f6cac8eb90bfd542f70b07862a1e6e07808befb4..2d03333b1b6dcd1646a31cd37556c7f6072dbb00 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <ram.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 #define MEM_MODE_MASK  GENMASK(2, 0)
 #define SWP_FMC_OFFSET 10
index 44e56c759fb0b849e3edefdac764b877b660a420..88430299c9281ea5703df6421958b5494658e669 100644 (file)
@@ -11,6 +11,7 @@
 #include <remoteproc.h>
 #include <errno.h>
 #include <mailbox.h>
+#include <dm/device_compat.h>
 #include <linux/soc/ti/k3-sec-proxy.h>
 
 #define K3_MSG_R5_TO_M3_M3FW                   0x8105
index bf44bebc028e20cfadf0cb68556faa126a518a66..f2e033aa741e14f83d8e33d4bfffbc9c5eba8d59 100644 (file)
@@ -7,7 +7,8 @@
 #include <dm.h>
 #include <elf.h>
 #include <remoteproc.h>
-#include <linux/err.h>
+#include <dm/device_compat.h>
+#include <linux/compat.h>
 
 /**
  * struct resource_table - firmware resource table header
index 80e8dffdbb187cdaa26c79431002097b0f49ba8b..e9dce0d173a14f559910f0d9f47880c8f1510b46 100644 (file)
@@ -12,6 +12,7 @@
 #include <reset.h>
 #include <syscon.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #define RCC_GCR_HOLD_BOOT      0
index d048cf41615ef3e508c0e9537b7e1e93422b8226..28c6ddb691913d98a3a18802a88a213e7777d888 100644 (file)
@@ -15,6 +15,7 @@
 #include <reset.h>
 #include <asm/io.h>
 #include <power-domain.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
index 913aca36d654e99765e35d932cbe0b21922fc5b6..09e050ffb2d3ab76f49ce8b7fd8da60c61b4b14c 100644 (file)
@@ -9,12 +9,14 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <remoteproc.h>
 #include <errno.h>
 #include <clk.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <power-domain.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 #include "ti_sci_proc.h"
index cecfb0ef866a5aa1fd1c70c40205b497eb68f881..ea56689552aa6cf1ee6ad061fba512a1d77c7493 100644 (file)
@@ -8,11 +8,13 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <remoteproc.h>
 #include <errno.h>
 #include <clk.h>
 #include <reset.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/kernel.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
index bbaaea9bb346c58f03e7e84a17c00d9b700e8d13..c1f1e7f70bf4fa5aefbb9839f8e153047b31ac0d 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
 
index d449e3d25e512cbb588cecc75d018fcc9e92422e..a678b8f745696719df6566fa249791accdfd89a6 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2019, Linaro Limited
  */
 
+#include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
index a2bad65a3b3fa3300b57a126414b5c62083a607f..a61855e9edfd6c50046a4e280ad4a13e9410887a 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (c) 2017, Impinj, Inc.
  */
 
+#include <malloc.h>
 #include <asm/io.h>
 #include <common.h>
 #include <dm.h>
index 4684cbfb6a13da1f08aea1415e4d730f17b19da6..6d17f52ac78b6de7ee249de58923dae757d56a1e 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/lists.h>
 #include <regmap.h>
 #include <reset-uclass.h>
index 9026e034c3d25a79a470ba174884b13c0aae06df..70f96355b376aed6564c09b7302cc2daf40893b1 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <regmap.h>
 
index 71254a93dde155eef3012bc77c2cde43b919c2fc..677de0a6f91bf0bded4f4c96795ae23164561c84 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <linux/io.h>
 
index 4fb9571b18fd479a509b36432242adc3a7b0a6d2..100afc8103b7e3ff838880a146dc764fd6e02e48 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <linux/io.h>
 #include <asm/arch-rockchip/hardware.h>
index 98524eb2b73bbbb57e15899c54be90e5e00d479d..3ad5e35cc25a4125a9aecd9c066887f0d3352e71 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/lists.h>
 #include <dm/of_access.h>
 #include <env.h>
index 1c717b20c31f36f8c7ca3d70f937fdae471d3194..f21bf3b1ae0813fa22940672d30d0549b90a00a1 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
 #include <dm/lists.h>
index 99e3d9ad5c9e76866643d59ce336681176c1bfa2..f5d82b56810b22f985d976f3b46278df948eb206 100644 (file)
@@ -11,7 +11,9 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset-uclass.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
index 8e6c0a4fd0963a3b38d5617dee6f8dbbf064cfa4..8ec8e462e62ddf94c191b74621d06b552869c59a 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <reset.h>
 #include <reset-uclass.h>
 #include <dm/devres.h>
index 97f7b0ed5f0e77627fccc734fbd5705fa250c01b..348f3886d1046310fbe3d85567ddbeaad620db68 100644 (file)
@@ -6,7 +6,9 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset-uclass.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
 #include <linux/sizes.h>
index 95ce2ca1171fede219e280a8a4d6d40e40689c84..ae79be0730dab90b4624f567d34f77adc5a3c1cf 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset.h>
 #include <asm/io.h>
 #include <asm/reset.h>
index c03fce35311bbec6a92264b8ad133d8918fbe5d2..bdf53a3de9f8a3c9da6a7ace481a6d707c869ef7 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/io.h>
 #include <asm/reset.h>
index 614da9da592087831062bd3f12eb34b4dd5f5cf7..31b3e48e0e9eed16e8e2a7eed8e7fb67657a6a37 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <errno.h>
+#include <malloc.h>
 #include <wait_bit.h>
 #include <dm.h>
 #include <reset-uclass.h>
index 4d7745abceba49d8a90d07f8a137e85439f3802b..5dda522a4eb7fedab2238a4312a9e235812915c1 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <stm32_rcc.h>
 #include <asm/io.h>
index 886ea04e2ec255a5e8fee617b54b6e0f1ce72a37..23c6facff27cb14bcdb92fd058dff48e6fccd34f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset-uclass.h>
 #include <asm/arch/clock.h>
 #include <asm/arch-tegra/clk_rst.h>
index 84ed77b96fbe3ac8f8b5a6ed1b759e3f36b3accd..e85f42b3a3461dcbaf0d1cebd101aad39c3054b5 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <misc.h>
 #include <reset-uclass.h>
 #include <asm/arch-tegra/bpmp_abi.h>
index 09a106aa4e9ecc2e1289a6288e94b932d116ccfb..e3b3579c4aad8f8f4f052162572fd0f4f6e0f806 100644 (file)
@@ -8,6 +8,7 @@
 #include <dm.h>
 #include <i2c.h>
 #include <rtc.h>
+#include <dm/device_compat.h>
 
 /*
  * RTC register addresses
index 23670627770af714e96048eca8705b95ec5847a2..87c4320d5f4f8cc07233d5d750ea47161783432d 100644 (file)
@@ -13,6 +13,7 @@
 #include <eeprom.h>
 #include <i2c.h>
 #include <rtc.h>
+#include <dm/device_compat.h>
 
 #define RTC_RV3029_PAGE_LEN             7
 
index 26747144425fcae995016a85cb424be913bac704..3e12f57ce0b7ba819f5ce1bb8edd635ee282ba4c 100644 (file)
@@ -5,8 +5,10 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <rtc.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 
 #define STM32_RTC_TR           0x00
index c450a4e08a3dc3f33c15a07829c22fd4950e083b..98d209072d1f4b9efb109c1a06b362ff954f35d4 100644 (file)
@@ -9,6 +9,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <watchdog.h>
 #include <serial.h>
 #include <debug_uart.h>
index 0f5f1fa4068cfe719000ee9e74916a729318f1fb..30f9b8c9394e9a3236e6ec87251fa955b5171554 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <env_internal.h>
 #include <errno.h>
+#include <malloc.h>
 #include <os.h>
 #include <serial.h>
 #include <stdio_dev.h>
index 9ad8c770d51e23084df21c192af2c4ead6b35a4e..5b963ce45bc0a1f6341f11d686f2bc6acc80f460 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <debug_uart.h>
 #include <errno.h>
+#include <malloc.h>
 #include <serial.h>
 #include <asm/io.h>
 #include <asm/types.h>
index ccb3ce6701abf35a4a5ff7cabd2e95665ecc3c50..d7907a228fec935218ec3e005a62c52dab27d35f 100644 (file)
@@ -11,6 +11,7 @@
 #include <watchdog.h>
 #include <asm/io.h>
 #include <serial.h>
+#include <dm/device_compat.h>
 #include <linux/compiler.h>
 #include <asm/arch/imx-regs.h>
 #include <asm/arch/clock.h>
index c462394dbdcd22b82b6b240ee84e50aef1b1a83e..0cc1aadce4a5b677b5137995059850cb8f4984fc 100644 (file)
@@ -12,6 +12,7 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <serial.h>
 #include <watchdog.h>
 #include <asm/io.h>
index 84600b12014bea12c17e885192a797d4ce74f792..bac506ed79d558037f990e173aacd14551748764 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <serial.h>
 #include <wait_bit.h>
 #include <mach/pic32.h>
index 00a8e7249b55717c172d4ed0eb4b18df73d6bf4e..016082814f6a7be333ebd6249fc036bf876c4e60 100644 (file)
@@ -13,6 +13,7 @@
 #include <asm/io.h>
 #include <asm/arch/stm32.h>
 #include "serial_stm32.h"
+#include <dm/device_compat.h>
 
 static void _stm32_serial_setbrg(fdt_addr_t base,
                                 struct stm32_uart_info *uart_info,
index c07375901bf7ddacbb99f311830c70d259f69d88..e4e4c3928582c89b51129e9c4885845128cf78c1 100644 (file)
@@ -12,6 +12,7 @@
 #include <fdtdec.h>
 #include <watchdog.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/compiler.h>
 #include <serial.h>
 #include <linux/err.h>
index 711ce626aae5d282e3d2fab3632a7d9a79e4a7c8..5557fd29ce6cd5ef3147ad1c601c39243a24e162 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <errno.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/of_access.h>
 #include <dm/of_addr.h>
index 97c046b0c3f6d571013740cde0f92a81cdbc4982..8cbfe2bf49c36bcce71bf306f6c3698d3732bf0d 100644 (file)
@@ -12,6 +12,7 @@
 #include <asm/dma-mapping.h>
 #include <asm/bitops.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/read.h>
 #include <dm/uclass.h>
index bada0c2ba5a92bfdb0d2889fb3a66c8e05937142..d9b3a38f18c7ea903a211db887647eb19465d123 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <i2s.h>
+#include <malloc.h>
 #include <sound.h>
 
 #define SOUND_BITS_IN_BYTE 8
index 195ea5fae68c05d1fd4c8cecec24f7501031b133..a09bf884e837d7b605602050566bb58c8e0ed651 100644 (file)
@@ -9,12 +9,14 @@
  * Author: Piotr Bugalski <bugalski.piotr@gmail.com>
  */
 
+#include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
 #include <errno.h>
 #include <fdtdec.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/io.h>
 #include <linux/iopoll.h>
index 529adfbc4e6e7ee4cb07c70b933187ffd4c68534..f88702df4dc293c64ddf2e30287b7404d901f9bf 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <spi.h>
 #include <reset.h>
 #include <wait_bit.h>
index 69f88c9e0873e7006bd4c6cdc5564ea26017c759..719f53d08e06ce9824252bef05ae9a9f9364cc0b 100644 (file)
@@ -10,6 +10,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <spi.h>
 #include <reset.h>
 #include <wait_bit.h>
index 0b503dd934ca6d692d841e7d2432969d290ff321..83b114ffe741cfc6f8e90b4c648840f6acb48402 100644 (file)
@@ -13,6 +13,7 @@
 #include <reset.h>
 #include <spi.h>
 #include <spi-mem.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/errno.h>
 #include <linux/sizes.h>
index 66ff8eeccdebde3da7980b2006a9d8fe5c70d04c..2dc16736a3ec577e4a6bf4adecb3ab7a56e8a8bc 100644 (file)
@@ -18,6 +18,7 @@
 #include <spi.h>
 #include <fdtdec.h>
 #include <reset.h>
+#include <dm/device_compat.h>
 #include <linux/compat.h>
 #include <linux/iopoll.h>
 #include <asm/io.h>
index 99ad505f24e4daf3c964596a5fdb3a8667b1cc6c..1469771619e4b4580129e6016a2e1df00ed70178 100644 (file)
@@ -12,6 +12,7 @@
 #include <clk.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index d94aaf9fdbd2048da4f3e6c7e262fa544e160ada..4d1317c36464cb2f9e732e601baab2c4209206a8 100644 (file)
@@ -7,6 +7,7 @@
 #include <dm.h>
 #include <malloc.h>
 #include <spi.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <asm/io.h>
 #include <asm/gpio.h>
index 4447d44991352a83ff68d96b652d3c191bf634be..83dde4806e050de8ab618851a9627401ff8603b3 100644 (file)
@@ -3,6 +3,7 @@
  * Copyright (C) 2018 Texas Instruments Incorporated - http://www.ti.com/
  */
 
+#include <malloc.h>
 #include <spi.h>
 #include <spi-mem.h>
 
index b8cf8dd76b66cabcc830a542dd79e606b3589d99..e900c997bd7f529d4a71c63b3ab732a6d7159c0c 100644 (file)
@@ -12,6 +12,7 @@
 #include <linux/pm_runtime.h>
 #include "internals.h"
 #else
+#include <dm/device_compat.h>
 #include <spi.h>
 #include <spi-mem.h>
 #endif
index dbfeac77eecf1f2fd7f09c3c2e31bc14365140b2..c59fee10a89e2020ddba975531696f51020b8961 100644 (file)
@@ -26,6 +26,7 @@
 #include <fdt_support.h>
 #include <reset.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 
 #include <asm/bitops.h>
 #include <asm/gpio.h>
index 958c394a1a0f7f6ec41965ff59ce72a44ae83f0f..6857a87dc5f5f8050f5075fbf3fba98244e3c88d 100644 (file)
@@ -11,6 +11,7 @@
 #include <clk.h>
 #include <reset.h>
 #include <spi-mem.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 #include <linux/ioport.h>
 #include <linux/sizes.h>
index 75b6006b45404948702ca2760f6399bceff9e5a5..ebf2b98fcd45955e71f11956bb89b72a269c5fc7 100644 (file)
@@ -8,8 +8,10 @@
 #include <clk.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <reset.h>
 #include <spi.h>
+#include <dm/device_compat.h>
 
 #include <asm/io.h>
 #include <asm/gpio.h>
index e47b969864b9962680c29d3ff9a3d7ab8515d19b..153fbb2889a1e2261b9be794fd62ab7fb7acc4f3 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <time.h>
+#include <dm/device_compat.h>
 #include <linux/bitfield.h>
 #include <linux/io.h>
 #include <spi.h>
index c05d46e084c6d3f2ff69b62f1cfbddc63290d852..02b78df843715ad8357e0061d352bce3e6a3987b 100644 (file)
@@ -16,6 +16,7 @@
 #include <spi.h>
 #include <ubi_uboot.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #define GQSPI_GFIFO_STRT_MODE_MASK     BIT(29)
index 6f1114699e5143482a62f6ec7dea0386cc28ecf4..ed93faffcb1300618355755403e5ff27352509a4 100644 (file)
@@ -12,6 +12,7 @@
 #include <errno.h>
 #include <fdtdec.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <spmi/spmi.h>
 
 DECLARE_GLOBAL_DATA_PTR;
index 6caea3aab3919b35c5d9be7c576c9a55ab725944..e7fcfcd4d1fb7e47c631d3aa242510bd3fb4850c 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <errno.h>
 #include <sysreset.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/soc/ti/ti_sci_protocol.h>
 
index a7b175ee62f9332c9d0e9e5ed80788aeefdd7d3d..9fb5e658f921da24299a6af5f4ef4ef5f6463b7d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <dm.h>
 #include <log.h>
+#include <malloc.h>
 #include <tee.h>
 #include <linux/arm-smccc.h>
 #include <linux/err.h>
index cf1ce77e6e19e68ea5fb2300fcfb48d4d32675e9..0804fc963cf53059de42fd243153dff8e6a79f6b 100644 (file)
@@ -8,6 +8,7 @@
 #include <log.h>
 #include <tee.h>
 #include <mmc.h>
+#include <dm/device_compat.h>
 
 #include "optee_msg.h"
 #include "optee_private.h"
index c5726ecb91bf6096920045528fcbf6dae74d01c7..ae042b9a20472f1873d05b44fb17d5e843adfc8f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <log.h>
+#include <malloc.h>
 #include <tee.h>
 #include <linux/types.h>
 
index abb88c0fee53f04fbbea846e4d365c55f4446941..1fb3c16a14134446c4c1f88231f952aa10fb93b6 100644 (file)
@@ -5,9 +5,10 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
+#include <tee.h>
 #include <dm/device-internal.h>
 #include <dm/uclass-internal.h>
-#include <tee.h>
 
 /**
  * struct tee_uclass_priv - information of a TEE, stored by the uclass
index fad22be8c91e9a39f07f6e27147f21fbc2a44eb8..35271b20c891e9585cf95bb16ca5e42177a0435b 100644 (file)
@@ -8,8 +8,10 @@
 #include <common.h>
 #include <dm.h>
 #include <clk.h>
+#include <malloc.h>
 #include <reset.h>
 #include <timer.h>
+#include <dm/device_compat.h>
 
 #include <asm/io.h>
 #include <asm/arch/timer.h>
index f0e25093ca4bb0977283e5394e6fe3ab08a02e1d..48a5055b05e12e65d2154245981edef10f329fc5 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <dm.h>
 #include <clk.h>
index 76315100e22f2e3b2e77a57e1c4e2b63e2e21fdc..76d99a2b86597416863ae8f7a0ebe79237539154 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <fdtdec.h>
 #include <timer.h>
+#include <dm/device_compat.h>
 
 #include <asm/io.h>
 
index 5bd0c1e0c7f7ec615c58744e5b0d410d1526358c..41ee6a60c9644fb1cc85aa4bf31ff22ae2bbb533 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <ufs.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #include "ufs.h"
index 6e4d0cd3acc9366ba01b8e9904ff468c96400f22..4990fba6ebb278d5abfb727e0f6b0366ae3ba2ab 100644 (file)
@@ -7,6 +7,7 @@
 #include <clk.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 
 #define UFS_SS_CTRL             0x4
index 512c63a8f25b5c7ef0b846d3ed59c8309d077de4..c9346c2edc8f265662a8702cb8017699a5496485 100644 (file)
@@ -11,6 +11,7 @@
 #include <charset.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <dm/device-internal.h>
index 2fa0104f1beec48eb1f76c44a5ee21d042e47d20..652cd5cb17ad9265b76bff036f348473be9eb4e5 100644 (file)
@@ -9,6 +9,7 @@
 #include <asm-generic/io.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/io.h>
 #include <linux/usb/otg.h>
 #include <malloc.h>
index 6f5e5af47d03d552bb1717c4904ccb6b2f3514fe..f947e6983c05d956e97d8d4405ca40be979005cc 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/lists.h>
 #include <linux/kernel.h>
index 13eb4899d49c940611d17a5add3869c391990f9f..47874fec29eb3b9fbab65c16fb287aee6e5ae293 100644 (file)
@@ -11,6 +11,7 @@
  *
  */
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/delay.h>
 #include <linux/iopoll.h>
 #include <linux/kernel.h>
index f35a92483948a0038aa88a520c488dc29f7f1d69..1957a3b91d5d8bfd4549c5fc1662713047f27ceb 100644 (file)
@@ -11,6 +11,7 @@
  */
 
 #include <cpu_func.h>
+#include <dm/device_compat.h>
 #include <linux/usb/composite.h>
 #include <linux/iopoll.h>
 
index e095760099d2bbf0ddf70f2a2327f28fa1d864b4..22e90a57179fde5d3c29008eb55c15a41d5c0627 100644 (file)
@@ -57,6 +57,7 @@
  */
 
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/usb/gadget.h>
index cbf21d31dd926ccef983637814c87926c605aa24..c5066529b7d0a50f597775f9f03ac1e1835e512d 100644 (file)
@@ -18,6 +18,7 @@
 #include <malloc.h>
 #include <dwc3-uboot.h>
 #include <asm/dma-mapping.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/err.h>
 #include <linux/ioport.h>
index 7ffec12fc50f24e52adc72830bf26d37f93fc3f9..9596bf144c370a5bcfa4fff0e5c03a3f58671715 100644 (file)
@@ -18,6 +18,7 @@
 #include <asm/io.h>
 #include <dm.h>
 #include <dwc3-omap-uboot.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/usb/dwc3-omap.h>
 #include <linux/ioport.h>
index 6e9c52189dd72453f29a5b0263bf2cc4c887c55b..88317b19ac050ebcf39de98a9d6aa3d28af0a030 100644 (file)
@@ -7,6 +7,7 @@
  */
 
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/bitops.h>
 #include <linux/errno.h>
 #include <linux/io.h>
index 0c8c11d743fa58e9d6c474f8c2b98b491f363e74..4af58941d823c9ace8652a0766bb42c3e1b09ec9 100644 (file)
@@ -14,6 +14,7 @@
  */
 #include <common.h>
 #include <cpu_func.h>
+#include <dm/device_compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 
index 677607ab324e20e8565a1b7e3eb5ae7fddf8921d..1502d67362a962c2c5425b1787a12b60bdcafd40 100644 (file)
@@ -17,6 +17,7 @@
 #include <cpu_func.h>
 #include <malloc.h>
 #include <asm/dma-mapping.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/bug.h>
 #include <linux/list.h>
index a90868216a4026aabdf2da419632f77fdda394a0..6b0166a1e0603388c4bdce369d7b1b1ce44f05d9 100644 (file)
@@ -19,6 +19,7 @@
 #include <common.h>
 #include <malloc.h>
 #include <ti-usb-phy-uboot.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/ioport.h>
 #include <asm/io.h>
index b834a1c10172f586bd6393ad68cb4b2c8e7d9836..496abf38e7217d285d70a2d6e180220a7ddbb0f2 100644 (file)
@@ -23,6 +23,7 @@
 #include <generic-phy.h>
 #include <malloc.h>
 #include <reset.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 
 #include <linux/errno.h>
index 4bbd030aad7d7537e31c8d5a442cebce1b981079..f40779b13a20cac1f7679a81f7a7f4cb8f641ae6 100644 (file)
@@ -269,6 +269,7 @@ struct device_attribute { int i; };
 #define ETOOSMALL      525
 
 #include <usb_mass_storage.h>
+#include <dm/device_compat.h>
 
 /*-------------------------------------------------------------------------*/
 
index 52384b9afb3cd5414d7476aa1255455509b27dd5..a33ab5c95d4ebb0a875df6c61f7d0d684ad22ed5 100644 (file)
@@ -13,6 +13,7 @@
  *                    usb_
  */
 
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/compat.h>
 #include <malloc.h>
index b9c56f763b30a4a498151fa2d4eccbef523c8f95..e4efaf1e5939eaebfb8a3556e74c9be96dfd53f0 100644 (file)
@@ -15,6 +15,7 @@
 #include <usbroothubdes.h>
 #include <wait_bit.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 #include <reset.h>
 
index 6900848df1e95cdb27e3c38675a94561b0fe35ed..67eec0e0bb64ffe6cb080b6ac1ec0f9e23ac2a3f 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <usb.h>
 #include <asm/io.h>
 #include <asm/arch/clk.h>
index 80ac876d89dd008c7db44b0886b5169bb4cfe23c..0643681846139f461bf4abc144421b8e2d43c92c 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <clk.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
index ef20c3c982b53d782cdfceddd45c65a85912c5fa..1cc02052f5425120adbd1fe2c33eaf9747adbd69 100644 (file)
@@ -17,6 +17,7 @@
 #include <malloc.h>
 #include <memalign.h>
 #include <watchdog.h>
+#include <dm/device_compat.h>
 #include <linux/compiler.h>
 
 #include "ehci.h"
index 29a702052e1d7dc3296b92405e4e6e194bfd3674..692018243c8e8bfa1dcf0079a57c09b17d91f4fe 100644 (file)
@@ -4,9 +4,11 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
index 7b6ec517043d24323332d83eca720e9252fd7dad..04d5fdb2a8676796b3f5d67deefdcdb90612d420 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <dm/ofnode.h>
 #include <generic-phy.h>
index a37696d83faf2626dc217f54395c3bbe276af242..8fc9d211db516a89dc69084679f49011160160c6 100644 (file)
@@ -10,6 +10,7 @@
 #include <dm.h>
 #include <usb.h>
 #include <asm/io.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 #include <power/regulator.h>
 
index c4d8811343a1e1336f812d8d47cedb24b3bb6f16..d86584b847d48bd17b848ddba168c81116ae5b43 100644 (file)
@@ -9,8 +9,10 @@
 #include <clk.h>
 #include <dm.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <usb.h>
 #include <wait_bit.h>
+#include <dm/device_compat.h>
 
 #include <usb/xhci.h>
 #include "xhci-rcar-r8a779x_usb3_v3.h"
index 58cde2261580d9d870aa55a57364f9a9a732fb89..6e5be90fe531bd6b8a9df385fb61f13572884a5b 100644 (file)
@@ -12,6 +12,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/module.h>
index 899b30db68448b72e115d8208ad3430202d35043..2ddcf33b5f022ae665cc553643410f6a0efd0b6c 100644 (file)
@@ -16,6 +16,7 @@
 #include <common.h>
 #include <dm.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <asm/arch/hardware.h>
 #include <asm/arch/da8xx-usb.h>
index cc6e0a71c904c725785b6506bdf17103c12e534b..f678aa48265da17474ba361f4e51a765df92b671 100644 (file)
@@ -65,6 +65,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
index d342eeba8024ad8744033c8150c0b6d449627f43..eb590885bc538fbd9657b505a70dc238db185cde 100644 (file)
@@ -15,6 +15,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/init.h>
 #include <linux/io.h>
index 74b645715dad8a382cf7802c0206e392f9adc00b..35d2123dddeeb78a04fea121d46d3820ee8f2085 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
index 3ef8fe13732d26220017a5df7047ac5f63e0d1f1..79e8222e3b3f7766ea6117154601e545dacb85de 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <linux/kernel.h>
 #include <linux/list.h>
 #include <linux/timer.h>
index 55ad8ead70654ff4ca46b4f21794f59c41ab36ae..b98f0ed40ee0ee059294d9070e81d9e9a50fb9e8 100644 (file)
@@ -9,6 +9,7 @@
  */
 
 #ifndef __UBOOT__
+#include <dm/device_compat.h>
 #include <dm/devres.h>
 #include <linux/module.h>
 #include <linux/kernel.h>
index f4d0e1fdc2ebbf876758636de805a537f48a9258..72f14b93438780411e7d2cd334443db9f8b51925 100644 (file)
@@ -1,5 +1,6 @@
 #include <common.h>
 #include <console.h>
+#include <malloc.h>
 #include <watchdog.h>
 #include <linux/err.h>
 #include <linux/errno.h>
index 8a45b0561342463340c58b634a4f3e68e1f8496c..0d34dcfc5d18ce53562b2f8a0a8add42cf5e1d2b 100644 (file)
@@ -12,6 +12,7 @@
 #include <dm.h>
 #include <serial.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <linux/err.h>
 #include <linux/usb/otg.h>
index 3a19900e21c1a9d525c2784c71f2601599922c93..c7867fef8acb4354015b463f6b39b675d1ff42f9 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <dm/device_compat.h>
 #include <linux/usb/musb.h>
 #include "linux-compat.h"
 #include "musb_core.h"
index 45eecfeee6c0c040b53e61a2a0e42a96e1ef522f..98bf73697872e7129a5be9d50fd36a1bfc8441d9 100644 (file)
 #include <clk.h>
 #include <dm.h>
 #include <generic-phy.h>
+#include <malloc.h>
 #include <phy-sun4i-usb.h>
 #include <reset.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/clock.h>
 #include <asm/arch/gpio.h>
 #include <asm-generic/gpio.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <dm/root.h>
 #include <linux/usb/musb.h>
index 20ca2731b49a8dc50a8bae944f79839a582ddd70..00759f3e832e70879819b83c70de5464b6ba90fd 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <console.h>
 #include <dm.h>
+#include <malloc.h>
 #include <linux/usb/otg.h>
 #include <dm/device-internal.h>
 #include <dm/lists.h>
index 897e6f19f7853d600ef8872a02406fd5cc0f677e..9209942430a42118183f21a31151d9fdb5392631 100644 (file)
@@ -10,6 +10,7 @@
 
 #include <common.h>
 #include <usb.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <asm/omap_common.h>
 #include <asm/arch/cpu.h>
index 734bc12c7bb4dba241e88d313932e9af4a62433e..62acccedf377ee1ba6d823f7129bb8fae9262c5c 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <cpu_func.h>
+#include <malloc.h>
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <asm/arch/clk.h>
index 0a725c5c15a31b3e667ae77f181e6fecc93d775d..6d7661db89d7e3020e84f171e2f3bee014cf24d1 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <video.h>
 #include <video_console.h>
 
index 285633b14d6c275fea880b9e6c2a7cdef43bc593..5fb68865ef4631adffba5be54598ed35ef6d2360 100644 (file)
@@ -13,6 +13,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <video_fb.h>
 #include <linux/list.h>
index 83d7c7b2c0476692b36637536670eb449c25c58d..5dd75e7ec82c6d7d6f548597f5a3dbb9eb481e81 100644 (file)
@@ -19,6 +19,7 @@
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <linux/iopoll.h>
 #include <video_bridge.h>
 
index 1629f558d0f182e6d5adec66a0dd822528438920..a57abd23f73b42ba117d6379f9a52738ffc6c899 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 
 #include <asm/gpio.h>
 #include <errno.h>
index 71151a87aaca9f3782ce3878fcac4a55a1980e06..87a75a9ca2abbeb05f2e9c676ebdc274e0e66c2a 100644 (file)
@@ -6,6 +6,7 @@
  */
 #define DEBUG
 #include <common.h>
+#include <malloc.h>
 #include <video.h>
 #include <dm.h>
 #ifdef CONFIG_DISPLAY
@@ -16,6 +17,7 @@
 #include <os.h>
 #include <fdt_support.h>
 #include <clk.h>
+#include <dm/device_compat.h>
 #include <linux/sizes.h>
 
 #define MALIDP_CORE_ID         0x0018
index dc6254514adb428530dc9227fd1cb810bec77f72..3ff5b28ae2fd9206bbf63d21fedef9faa7642948 100644 (file)
@@ -8,6 +8,7 @@
 #include <common.h>
 #include <dm.h>
 #include <video.h>
+#include <dm/device_compat.h>
 #include <linux/mbus.h>
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
index c52981053e99ac31476a48f3d0e3d45dc3030295..6f80fbaaf3ea41c830afcf6dc3b670ac1dea27a9 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <dm.h>
 #include <env.h>
+#include <dm/device_compat.h>
 #include <linux/errno.h>
 #include <malloc.h>
 #include <video.h>
index 89d9cfdbb333564a5aa1fa55cf38944b9208ae5d..650ed0723932ebcae0af53c7c2b03c018d91540f 100644 (file)
@@ -13,6 +13,7 @@
 #include <mipi_dsi.h>
 #include <panel.h>
 #include <asm/gpio.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 
 #define OTM8009A_BACKLIGHT_DEFAULT     240
index ad20bf2441f38a1e0980a7664ced5b1a31a18c80..742579aba71940bdcf991da560de801c27a15108 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <dm.h>
 #include <backlight.h>
+#include <malloc.h>
 #include <pwm.h>
 #include <asm/gpio.h>
 #include <power/regulator.h>
index 91555e26edaf718e73582637ae38aabc71782883..853dbc52d61268ef0ab6e74a2a690e53cc19fa73 100644 (file)
@@ -13,6 +13,7 @@
 #include <mipi_dsi.h>
 #include <panel.h>
 #include <asm/gpio.h>
+#include <dm/device_compat.h>
 #include <power/regulator.h>
 
 /*** Manufacturer Command Set ***/
index 3d25ce924c28ebe221c352d5106cfd5e6f97cb48..51eb41540bc2a1f7b8bab9d86ef90e4c76854ce5 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <dw_hdmi.h>
 #include <edid.h>
+#include <malloc.h>
 #include <regmap.h>
 #include <syscon.h>
 #include <asm/gpio.h>
index 4330725a251380e5be1e3365fa75a707c40715a7..8703df0ec081d05e757eedd6cc45f1f9cd17d930 100644 (file)
@@ -9,6 +9,7 @@
 #include <display.h>
 #include <dm.h>
 #include <edid.h>
+#include <malloc.h>
 #include <panel.h>
 #include <regmap.h>
 #include <syscon.h>
index dd84489add0640b3e6f58d708186556bf32356b5..7e722326b3d9364e57a651ea37711fcd7e15425a 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <display.h>
 #include <dm.h>
+#include <malloc.h>
 #include <video_osd.h>
 
 #include "sandbox_osd.h"
index 58564e8cfe33f668daafd44b85a7854e99a43ade..60075a6cf325d34bf3c0618248017193ff9591ad 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <asm/gpio.h>
 #include <spi.h>
 
index 4d40dca0c8e360660179549a5f1ab3f369f08218..83566bc6d66736789dd43bd275531b2710122282 100644 (file)
@@ -10,6 +10,7 @@
  */
 
 #include <common.h>
+#include <malloc.h>
 #include <mipi_display.h>
 #include <asm/arch/gpio.h>
 #include <asm/gpio.h>
index 12895a8f5d8c5ff0918e02df543a5e9d73e5f49b..ded03b109c90fb911e1e96fac9ded79f79ccd36d 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/lists.h>
 #include <linux/iopoll.h>
 #include <power/regulator.h>
index 59ff692b0b4cf98cf3ca036a9ca8142e2a239108..be7e9bff01bce275a4451e96793a8d0dea524efa 100644 (file)
@@ -16,6 +16,7 @@
 #include <asm/io.h>
 #include <asm/arch/gpio.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 
 struct stm32_ltdc_priv {
        void __iomem *regs;
index 12057c8a5beaacb0acb96f63fb6bf7f623a33de1..3d658e61d7c6ccba03164ca239b6962a85478fb2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <cpu_func.h>
 #include <dm.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <stdio_dev.h>
 #include <video.h>
index 436faa46eecffafffa67f7a22153c2d9c761cf42..23f281cd6eb2f9af135ba69097773c68313e334f 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <virtio_types.h>
 #include <virtio.h>
 #include <dm/lists.h>
index 0eeb3501c20536db7a7e42eac36cc9a837dcccce..45c48a927a5f08ce647bdeb8f6a7ac0b2256ced0 100644 (file)
@@ -12,6 +12,7 @@
 #include <virtio_types.h>
 #include <virtio.h>
 #include <virtio_ring.h>
+#include <linux/compat.h>
 
 int virtqueue_add(struct virtqueue *vq, struct virtio_sg *sgs[],
                  unsigned int out_sgs, unsigned int in_sgs)
index 76ca460ed7f44869b0a3bc6c5abfcd7dcf639054..19ee4b17ea54507d47020fc17a562e15af94fe41 100644 (file)
@@ -22,6 +22,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <w1-eeprom.h>
 #include <w1.h>
index 9279ba32b85478ce9b7df5c6b3b6cf89005e41c5..08715c6a666a431550644cfaf0cc014e712deeba 100644 (file)
@@ -20,6 +20,7 @@
 #include <asm/arch/clock.h>
 #include <common.h>
 #include <dm.h>
+#include <dm/device_compat.h>
 #include <linux/io.h>
 #include <w1.h>
 
index 91cd8a6e6a2ac3b74ae9c3dde9fa6adaffe0560e..5da8e56505fb2143637b893b291ea5940944eeab 100644 (file)
@@ -11,6 +11,7 @@
 #include <asm/io.h>
 #include <asm/arch/cpu.h>
 #include <asm/arch/soc.h>
+#include <dm/device_compat.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index 13952e1e97a0b4198c717878d7589778013865c4..775f06a6e1c20b46ab86affbbc76794f9b320d16 100644 (file)
@@ -11,6 +11,7 @@
 #include <wdt.h>
 #include <clk.h>
 #include <div64.h>
+#include <dm/device_compat.h>
 #include <linux/err.h>
 #include <linux/io.h>
 
index 3368bd8c005ae0a343987558c47f08177b30a383..67aeba1339d84298fb2c9b4335b6be391322dec4 100644 (file)
@@ -22,6 +22,7 @@
 
 
 #include <common.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <linux/stat.h>
 #include <div64.h>
index 37b31d9f0fcc4d5674ce64277a1e28c0f3035712..1c616a26a272ba7c15736b317bbd9f50a2524dbe 100644 (file)
@@ -25,6 +25,7 @@
 #include <ext4fs.h>
 #include "ext4_common.h"
 #include <div64.h>
+#include <malloc.h>
 
 int ext4fs_symlinknest;
 struct ext_filesystem ext_fs;
index 729cf39630d35107b178859803e4b5e7ed5f055b..320a8a7a87d4bfb485bbfcf71c357cb7e266d498 100644 (file)
@@ -9,6 +9,7 @@
 #include <command.h>
 #include <config.h>
 #include <fat.h>
+#include <malloc.h>
 #include <asm/byteorder.h>
 #include <part.h>
 #include <linux/ctype.h>
index 1e253611c367fe2f0b2fbd8be36ce2f54f69d684..af47224b6c6aa623644658ffba83c865a774ef9f 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <fs.h>
+#include <malloc.h>
 #include <os.h>
 
 int sandbox_fs_set_blk_dev(struct blk_desc *rbdd, disk_partition_t *info)
index 5473d339978584d8777057c10a50a57e1ac6edbc..a7c45dd5ecb045a58ce1ef6d7d83af7fac692875 100644 (file)
@@ -17,6 +17,7 @@
  */
 
 #ifdef __UBOOT__
+#include <malloc.h>
 #include <linux/err.h>
 #endif
 #include "ubifs.h"
index 388451512a3d2a67dd854534afef7616dc696b6b..e097d284444959c857996b40d1b5b6bc6a515f23 100644 (file)
@@ -14,6 +14,7 @@
 #include <common.h>
 #include <env.h>
 #include <gzip.h>
+#include <malloc.h>
 #include <memalign.h>
 #include "ubifs.h"
 #include <dm/devres.h>
index 79b00ab3b7b40b492b823caeef66a69f979029f0..ee5a17206072e70a714b38c21127df84459e6b33 100644 (file)
@@ -13,6 +13,7 @@
 
 #include "yportenv.h"
 #include "yaffs_guts.h"
+#include <malloc.h>
 
 
 #include "yaffs_nandif.h"
index 2a70e4a543e0b9e8608c6e6fd803988ac3af3a3e..7a15a02974d07c6b2aee58eb767cda7ca5bfd3ef 100644 (file)
@@ -21,6 +21,7 @@
 
 #include <common.h>
 #include <div64.h>
+#include <malloc.h>
 
 #include <config.h>
 #include "nand.h"
index 2d8b716ef5e951fd1f5501170762526250e6f353..544da27e61f93857861ec7eca20554ad18f05f35 100644 (file)
@@ -803,75 +803,4 @@ static inline bool device_is_on_pci_bus(const struct udevice *dev)
  */
 int dm_scan_fdt_dev(struct udevice *dev);
 
-/*
- * REVISIT:
- * remove the following after resolving conflicts with <linux/compat.h>
- */
-#ifdef dev_dbg
-#undef dev_dbg
-#endif
-#ifdef dev_vdbg
-#undef dev_vdbg
-#endif
-#ifdef dev_info
-#undef dev_info
-#endif
-#ifdef dev_err
-#undef dev_err
-#endif
-#ifdef dev_warn
-#undef dev_warn
-#endif
-
-/*
- * REVISIT:
- * print device name like Linux
- */
-#define dev_printk(dev, fmt, ...)                              \
-({                                                             \
-       printk(fmt, ##__VA_ARGS__);                             \
-})
-
-#define __dev_printk(level, dev, fmt, ...)                     \
-({                                                             \
-       if (level < CONFIG_VAL(LOGLEVEL))                       \
-               dev_printk(dev, fmt, ##__VA_ARGS__);            \
-})
-
-#define dev_emerg(dev, fmt, ...) \
-       __dev_printk(0, dev, fmt, ##__VA_ARGS__)
-#define dev_alert(dev, fmt, ...) \
-       __dev_printk(1, dev, fmt, ##__VA_ARGS__)
-#define dev_crit(dev, fmt, ...) \
-       __dev_printk(2, dev, fmt, ##__VA_ARGS__)
-#define dev_err(dev, fmt, ...) \
-       __dev_printk(3, dev, fmt, ##__VA_ARGS__)
-#define dev_warn(dev, fmt, ...) \
-       __dev_printk(4, dev, fmt, ##__VA_ARGS__)
-#define dev_notice(dev, fmt, ...) \
-       __dev_printk(5, dev, fmt, ##__VA_ARGS__)
-#define dev_info(dev, fmt, ...) \
-       __dev_printk(6, dev, fmt, ##__VA_ARGS__)
-
-#ifdef DEBUG
-#define dev_dbg(dev, fmt, ...) \
-       __dev_printk(7, dev, fmt, ##__VA_ARGS__)
-#else
-#define dev_dbg(dev, fmt, ...)                                 \
-({                                                             \
-       if (0)                                                  \
-               __dev_printk(7, dev, fmt, ##__VA_ARGS__);       \
-})
-#endif
-
-#ifdef VERBOSE_DEBUG
-#define dev_vdbg       dev_dbg
-#else
-#define dev_vdbg(dev, fmt, ...)                                        \
-({                                                             \
-       if (0)                                                  \
-               __dev_printk(7, dev, fmt, ##__VA_ARGS__);       \
-})
-#endif
-
 #endif
diff --git a/include/dm/device_compat.h b/include/dm/device_compat.h
new file mode 100644 (file)
index 0000000..3d8cd09
--- /dev/null
@@ -0,0 +1,86 @@
+/* SPDX-License-Identifier: GPL-2.0+ */
+/*
+ * Copyright (c) 2013 Google, Inc
+ *
+ * (C) Copyright 2012
+ * Pavel Herrmann <morpheus.ibis@gmail.com>
+ * Marek Vasut <marex@denx.de>
+ */
+
+#ifndef _DM_DEVICE_COMPAT_H
+#define _DM_DEVICE_COMPAT_H
+
+#include <linux/compat.h>
+
+/*
+ * REVISIT:
+ * remove the following after resolving conflicts with <linux/compat.h>
+ */
+#ifdef dev_dbg
+#undef dev_dbg
+#endif
+#ifdef dev_vdbg
+#undef dev_vdbg
+#endif
+#ifdef dev_info
+#undef dev_info
+#endif
+#ifdef dev_err
+#undef dev_err
+#endif
+#ifdef dev_warn
+#undef dev_warn
+#endif
+
+/*
+ * REVISIT:
+ * print device name like Linux
+ */
+#define dev_printk(dev, fmt, ...)                              \
+({                                                             \
+       printk(fmt, ##__VA_ARGS__);                             \
+})
+
+#define __dev_printk(level, dev, fmt, ...)                     \
+({                                                             \
+       if (level < CONFIG_VAL(LOGLEVEL))                       \
+               dev_printk(dev, fmt, ##__VA_ARGS__);            \
+})
+
+#define dev_emerg(dev, fmt, ...) \
+       __dev_printk(0, dev, fmt, ##__VA_ARGS__)
+#define dev_alert(dev, fmt, ...) \
+       __dev_printk(1, dev, fmt, ##__VA_ARGS__)
+#define dev_crit(dev, fmt, ...) \
+       __dev_printk(2, dev, fmt, ##__VA_ARGS__)
+#define dev_err(dev, fmt, ...) \
+       __dev_printk(3, dev, fmt, ##__VA_ARGS__)
+#define dev_warn(dev, fmt, ...) \
+       __dev_printk(4, dev, fmt, ##__VA_ARGS__)
+#define dev_notice(dev, fmt, ...) \
+       __dev_printk(5, dev, fmt, ##__VA_ARGS__)
+#define dev_info(dev, fmt, ...) \
+       __dev_printk(6, dev, fmt, ##__VA_ARGS__)
+
+#ifdef DEBUG
+#define dev_dbg(dev, fmt, ...) \
+       __dev_printk(7, dev, fmt, ##__VA_ARGS__)
+#else
+#define dev_dbg(dev, fmt, ...)                                 \
+({                                                             \
+       if (0)                                                  \
+               __dev_printk(7, dev, fmt, ##__VA_ARGS__);       \
+})
+#endif
+
+#ifdef VERBOSE_DEBUG
+#define dev_vdbg       dev_dbg
+#else
+#define dev_vdbg(dev, fmt, ...)                                        \
+({                                                             \
+       if (0)                                                  \
+               __dev_printk(7, dev, fmt, ##__VA_ARGS__);       \
+})
+#endif
+
+#endif
index 0ef6e685ad698bf72c52b239ffacbd11c6d5e8ec..8a20743ad84513742e6c521ba19bc7331499e516 100644 (file)
@@ -13,6 +13,7 @@
 #include <linux/bitops.h>
 #include <linux/err.h>
 #include <clk-uclass.h>
+#include <linux/err.h>
 
 static inline void clk_dm(ulong id, struct clk *clk)
 {
index 86709cc8754719b066f4b2e95bf3404a17d97d6b..8945d8d4cf2ac7ccdb5c46f4826eb92f1f4c29e7 100644 (file)
--- a/lib/bch.c
+++ b/lib/bch.c
@@ -55,6 +55,7 @@
 
 #ifndef USE_HOSTCC
 #include <common.h>
+#include <malloc.h>
 #include <ubi_uboot.h>
 #include <dm/devres.h>
 
index 1774bdf2e5c60c14f0e21ada30890eca877728f2..6cf6dcfdad60558c45ef8c985a0c2d9eb2b0a609 100644 (file)
@@ -9,6 +9,7 @@
 #include <common.h>
 #include <binman.h>
 #include <dm.h>
+#include <malloc.h>
 
 struct binman_info {
        ofnode image;
index 9262e4055ed70e23c3331ad11a34a4805befe69c..377b269b06db55737347d396d60e0dac8ee3433c 100644 (file)
@@ -1,5 +1,6 @@
 #include <config.h>
 #include <common.h>
+#include <malloc.h>
 #include <watchdog.h>
 
 /*
index aca627a4a61916c6d52c95e5e3bc225115ec5954..cc0c0d6637bd3c877985baac59debf3708a154f5 100644 (file)
@@ -6,6 +6,7 @@
  * Authors: Tadeusz Struk <tadeusz.struk@intel.com>
  */
 #ifndef __UBOOT__
+#include <linux/compat.h>
 #include <linux/kernel.h>
 #include <linux/export.h>
 #endif
index 7cba57b131f626e168d230ee77a2ac46042f92f2..0c16a5fdd38a983e23c06c998aa782319c29e971 100644 (file)
@@ -11,6 +11,7 @@
 #include <common.h>
 #include <debug_uart.h>
 #include <errno.h>
+#include <malloc.h>
 #include <linux/err.h>
 #include <linux/types.h>
 #include <efi.h>
index af5a878fc39ad8680e9011a927a9db8d7cdc2521..7c64077d42e8b1188859d3fc6ce625795a34260a 100644 (file)
@@ -13,6 +13,7 @@
 #include <debug_uart.h>
 #include <dm.h>
 #include <errno.h>
+#include <malloc.h>
 #include <linux/err.h>
 #include <linux/types.h>
 #include <efi.h>
index 6dd93ff435a5a408151f34d868ef4daa6d962dc7..7d650d512e30b142b0869adb5c3fd0e81cab496f 100644 (file)
@@ -14,6 +14,7 @@
 #include <efi.h>
 #include <efi_api.h>
 #include <errno.h>
+#include <malloc.h>
 #include <ns16550.h>
 #include <asm/cpu.h>
 #include <asm/io.h>
index cf0234193138fd335876b68bcb3508119dbb4540..33e66fcad2e745ecd4ef862d865bf3d56ec4cd71 100644 (file)
@@ -29,6 +29,7 @@
  */
 
 #include <efi_driver.h>
+#include <malloc.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
 
index 25b27ece6dd4294e484b36a601b2bc059cca5dd4..f8badadf66047a7053bafad9b8a17533dce733f8 100644 (file)
@@ -18,6 +18,7 @@
  */
 
 #include <efi_driver.h>
+#include <malloc.h>
 
 /**
  * check_node_type() - check node type
index 8494044799a797c7f3ac2f76f6d200818afa40df..ac0dec1146f63d5af338113365a00d529074840a 100644 (file)
@@ -7,6 +7,7 @@
 
 #include <common.h>
 #include <charset.h>
+#include <malloc.h>
 #include <time.h>
 #include <dm/device.h>
 #include <efi_loader.h>
index df0485cdad3f6f09bb3a1fc1e12235d8f7920e06..4b3c843b2ced089fc355c88b228451587a072511 100644 (file)
@@ -11,6 +11,7 @@
 #include <dm.h>
 #include <elf.h>
 #include <efi_loader.h>
+#include <malloc.h>
 #include <rtc.h>
 #include <u-boot/crc.h>
 
index 7fbb4c7ddc44359ec861768713fecf5dbf2f4393..eb11fc898e308efdadba2dc2b998e0b38158fdf6 100644 (file)
@@ -9,6 +9,7 @@
 #include <dm.h>
 #include <hang.h>
 #include <init.h>
+#include <malloc.h>
 #include <dm/of_extra.h>
 #include <env.h>
 #include <errno.h>
index 684c512bb915949ad9c9d684a6d51338e82ff6fd..dd859d3467ea74447ce7fb249f0d3a77138861fa 100644 (file)
@@ -7,6 +7,7 @@
 #include "avb_sha.h"
 #include "avb_util.h"
 #include "avb_version.h"
+#include <malloc.h>
 
 #define NUM_GUIDS 3
 
index 9f03b9777ab96866124c1171f119dc5f17d0368d..86b8d1b99430e74841224674a95761016a8d863b 100644 (file)
@@ -6,6 +6,7 @@
 #include "avb_descriptor.h"
 #include "avb_util.h"
 #include "avb_vbmeta_image.h"
+#include <malloc.h>
 
 bool avb_descriptor_validate_and_byteswap(const AvbDescriptor* src,
                                           AvbDescriptor* dest) {
index bbf15626b85f2f41dafc90e0782fa03e12b709b7..d7bf8905be2876d754aa211ffc9323ecafca7862 100644 (file)
@@ -12,6 +12,7 @@
 #include "avb_sha.h"
 #include "avb_util.h"
 #include "avb_vbmeta_image.h"
+#include <malloc.h>
 
 typedef struct IAvbKey {
   unsigned int len; /* Length of n[] in number of uint32_t */
index c0defdf9c98aa4eed3d576f65d7781471bbfeb1e..58baf522fcb04c99e20047dc03c42ff4696b54cf 100644 (file)
@@ -14,6 +14,7 @@
 #include "avb_util.h"
 #include "avb_vbmeta_image.h"
 #include "avb_version.h"
+#include <malloc.h>
 
 /* Maximum number of partitions that can be loaded with avb_slot_verify(). */
 #define MAX_NUMBER_OF_LOADED_PARTITIONS 32
index 0bb0cc1498e5a97ab2742d20408f3966f1524800..6ffdb0b7eb35ff47c5412373de6d3e97f7788be7 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include <hang.h>
+#include <malloc.h>
 #include <stdarg.h>
 #include <stdlib.h>
 
index 405d625351eb23cc03e06c75634c247a1430c046..94773b77e7e332f9c44c9424c5fab6958cbb5659 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "avb_util.h"
+#include <malloc.h>
 
 #include <stdarg.h>
 
index 3f440deaa0d8a5d5a7d181772750786be29ba7e4..89a6fd6ec96d5e10ae4b890d2cb1200ca4332ab9 100644 (file)
@@ -1,5 +1,6 @@
 
 #include <common.h>
+#include <malloc.h>
 #include <memalign.h>
 #include <linux/compat.h>
 
index b3b84e4d37d962297e45f18f31a0c07e8c4c9a48..07b9308adf29ff4d5773b8a663ec6e0bdaedd6a9 100644 (file)
--- a/lib/lmb.c
+++ b/lib/lmb.c
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <lmb.h>
+#include <malloc.h>
 
 #define LMB_ALLOC_ANYWHERE     0
 
index 5b5905aeb5ffcfd3b9cbbadbae737a97c5d5480e..6400ef63d6a92a05ca83780138231e0787506dc7 100644 (file)
@@ -4,6 +4,7 @@
  */
 
 #include "mkimage.h"
+#include <malloc.h>
 #include <stdio.h>
 #include <string.h>
 #include <image.h>
index 82dc513260e2c9d44bb2e8767df50cb0fdae39c5..326a5e4ea97e5fc369c72520b627e5a040c071c9 100644 (file)
@@ -6,6 +6,7 @@
 #ifndef USE_HOSTCC
 #include <common.h>
 #include <fdtdec.h>
+#include <malloc.h>
 #include <asm/types.h>
 #include <asm/byteorder.h>
 #include <linux/errno.h>
index ac5ab528bb19449ac57920e7dd1e5ac86631809d..ae3be3f02a61ab2a6fc9b8857f9c89a297604b6a 100644 (file)
@@ -23,6 +23,7 @@
 #include "huf.h"
 #include "mem.h" /* low level memory routines */
 #include "zstd_internal.h"
+#include <malloc.h>
 #include <linux/kernel.h>
 #include <linux/compat.h>
 #include <linux/string.h> /* memcpy, memmove, memset */
index 9a217e15739c7a510dabdff07661559f8890fd6a..6b2c79eeb656ea9d99cea362472e4dacf3723905 100644 (file)
@@ -9,6 +9,7 @@
 ***************************************/
 #include "error_private.h"
 #include "zstd_internal.h" /* declaration of ZSTD_isError, ZSTD_getErrorName, ZSTD_getErrorCode, ZSTD_getErrorString, ZSTD_versionNumber */
+#include <malloc.h>
 #include <linux/kernel.h>
 
 /*=**************************************************************
index f75e4df626bd70e99522527b3b5208b2f81623c5..8e7872155a1383fd4a02ab74e66988e2fa967180 100644 (file)
@@ -6,9 +6,12 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <miiphy.h>
 #include <dm/device-internal.h>
+#include <dm/device_compat.h>
 #include <dm/uclass-internal.h>
+#include <linux/compat.h>
 
 /* DT node properties for MAC-PHY interface */
 #define PHY_MODE_STR_CNT       2
index f27138ddaaf3bba4fa165e20c13de945cbbd85d4..696a60f70a7146a021ba95c59b724b9fe3746c6e 100644 (file)
@@ -6,6 +6,7 @@
 
 #include <common.h>
 #include <env.h>
+#include <malloc.h>
 #include <stdio_dev.h>
 #include <time.h>
 #include <watchdog.h>
index 31335a543f176ad49fd4eee78b58cbcb6917cbb9..003b78934f35d75fb64d01b40c4c0e221f88c20d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <clk.h>
 #include <dm.h>
+#include <malloc.h>
 #include <asm/clk.h>
 #include <dm/test.h>
 #include <dm/device-internal.h>
index b56d17731d5c1e7a4bb4aafbda74b186ba7b0eb3..12cba57a56f78bd838f7bf7cec4178a740a732ba 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/test.h>
 #include <dma.h>
 #include <test/ut.h>
index bb4b20cea938d57463627e697f8bd20cf09db4cd..349123a657c2f0599ebb2f2f07e0d6761284af4d 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/root.h>
 #include <dm/test.h>
 #include <dm/util.h>
index 4562d2ac4f83e7fa8c88a9bb8c20addd694e1343..e6c521b8b5429b1eede509026dcd105cffdaa26e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/test.h>
 #include <asm/mbox.h>
 #include <test/ut.h>
index 48318218a9e2227662c81fabeb60cb055ede4d59..8baf5d09d1d235c184642012b8c7c6b18fe0f88d 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/test.h>
 #include <asm/power-domain.h>
 #include <test/ut.h>
index c61daed49032b64ebbd0ebaf8a36400dc4ed9f44..8370820428c38a476cd11c938523693d5514eb1e 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <reset.h>
 #include <dm/test.h>
 #include <asm/reset.h>
index e6a910859e3a48a6f424b6f5c9031f296af8b4cb..668b7e133ff8ec46474ac2beea677b7fe52e03c2 100644 (file)
@@ -6,6 +6,7 @@
 #include <common.h>
 #include <fdtdec.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/device.h>
 #include <dm/root.h>
 #include <dm/test.h>
index 22f05a4219783c8a7826b1b0750e49509c177e26..d40f13d291559f9d4781b53cd42ceae3095d64e0 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <dm.h>
+#include <malloc.h>
 #include <dm/test.h>
 #include <sandboxtee.h>
 #include <tee.h>
index 3151ebb73fc644c8778cab4248d1f494af28b0e9..f72979fac4ee895598acac4fc4917673ca85bc59 100644 (file)
@@ -7,6 +7,7 @@
 #include <common.h>
 #include <bzlib.h>
 #include <dm.h>
+#include <malloc.h>
 #include <mapmem.h>
 #include <os.h>
 #include <video.h>
index ec68227bb6ab5fba7cf0e17a3cf0f7313097f38a..1336b54b11f214565d3852061fb1e2c938111352 100644 (file)
@@ -5,6 +5,7 @@
 
 #include <common.h>
 #include <lmb.h>
+#include <malloc.h>
 #include <dm/test.h>
 #include <test/ut.h>
 
index 47532a64df62b8409ac2dd8e8e716ee84ee15b4c..4d99c20bc04779a5228956bc6a6d2cfdba903f4b 100644 (file)
@@ -9,6 +9,7 @@
 #include <charset.h>
 #include <command.h>
 #include <errno.h>
+#include <malloc.h>
 #include <test/test.h>
 #include <test/suites.h>
 #include <test/ut.h>