]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: Fix up inclusion of common.h
authorSimon Glass <sjg@chromium.org>
Wed, 17 May 2017 23:18:07 +0000 (17:18 -0600)
committerSimon Glass <sjg@chromium.org>
Thu, 1 Jun 2017 13:03:03 +0000 (07:03 -0600)
commit4af0d7e8709eafc4d410697dd64d26eeb1a9590f
tree7a8f5903e36664b6be9125e126604bb09464be12
parent79fc0c784d35c1eeb3053e6458406c9280910cd2
dm: Fix up inclusion of common.h

It is good practice to include common.h as the first header. This ensures
that required features like the DECLARE_GLOBAL_DATA_PTR macro,
configuration options and common types are available.

Fix up some files which currently don't do this. This is necessary because
driver model will soon start using global data and configuration in the
dm/read.h header file, included via dm.h. The gd->fdt_blob value will be
used to access the device tree and CONFIG options will be used to
determine whether to support inline functions in the header file.

Signed-off-by: Simon Glass <sjg@chromium.org>
23 files changed:
arch/arm/mach-uniphier/pinctrl-glue.c
drivers/firmware/firmware-uclass.c
drivers/gpio/lpc32xx_gpio.c
drivers/mmc/pic32_sdhci.c
drivers/pinctrl/meson/pinctrl-meson-gxbb.c
drivers/pinctrl/nxp/pinctrl-imx5.c
drivers/pinctrl/nxp/pinctrl-imx6.c
drivers/pinctrl/nxp/pinctrl-imx7.c
drivers/pinctrl/nxp/pinctrl-imx7ulp.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c
drivers/pinctrl/uniphier/pinctrl-uniphier-sld3.c
drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
drivers/serial/serial_uniphier.c
drivers/spi/fsl_dspi.c
drivers/sysreset/sysreset_psci.c
drivers/video/exynos/exynos_dp.c