[U-Boot] [PATCH v3 5/9] dm: Fix up inclusion of common.h
sjg at google.com
sjg at google.com
Thu May 18 16:01:22 UTC 2017
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 at chromium.org>
---
Changes in v3:
- Update commit message to mention dm/read.h instead of dm/ofnode.h
- Add more detail in the commit message about why global_data is needed
Changes in v2: None
arch/arm/mach-uniphier/pinctrl-glue.c | 1 +
drivers/firmware/firmware-uclass.c | 1 +
drivers/gpio/lpc32xx_gpio.c | 1 +
drivers/mmc/pic32_sdhci.c | 2 +-
drivers/pinctrl/meson/pinctrl-meson-gxbb.c | 1 +
drivers/pinctrl/nxp/pinctrl-imx5.c | 1 +
drivers/pinctrl/nxp/pinctrl-imx6.c | 1 +
drivers/pinctrl/nxp/pinctrl-imx7.c | 1 +
drivers/pinctrl/nxp/pinctrl-imx7ulp.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-sld3.c | 1 +
drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c | 1 +
drivers/serial/serial_uniphier.c | 1 +
drivers/spi/fsl_dspi.c | 2 ++
drivers/sysreset/sysreset_psci.c | 1 +
drivers/video/exynos/exynos_dp.c | 2 +-
23 files changed, 24 insertions(+), 2 deletions(-)
Applied to u-boot-dm
More information about the U-Boot
mailing list