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>
master
Simon Glass 8 years ago
parent 79fc0c784d
commit 4af0d7e870
  1. 1
      arch/arm/mach-uniphier/pinctrl-glue.c
  2. 1
      drivers/firmware/firmware-uclass.c
  3. 1
      drivers/gpio/lpc32xx_gpio.c
  4. 2
      drivers/mmc/pic32_sdhci.c
  5. 1
      drivers/pinctrl/meson/pinctrl-meson-gxbb.c
  6. 1
      drivers/pinctrl/nxp/pinctrl-imx5.c
  7. 1
      drivers/pinctrl/nxp/pinctrl-imx6.c
  8. 1
      drivers/pinctrl/nxp/pinctrl-imx7.c
  9. 1
      drivers/pinctrl/nxp/pinctrl-imx7ulp.c
  10. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-ld11.c
  11. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-ld20.c
  12. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-ld4.c
  13. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-ld6b.c
  14. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-pro4.c
  15. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-pro5.c
  16. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-pxs2.c
  17. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-pxs3.c
  18. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-sld3.c
  19. 1
      drivers/pinctrl/uniphier/pinctrl-uniphier-sld8.c
  20. 1
      drivers/serial/serial_uniphier.c
  21. 2
      drivers/spi/fsl_dspi.c
  22. 1
      drivers/sysreset/sysreset_psci.c
  23. 2
      drivers/video/exynos/exynos_dp.c

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <linux/errno.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -2,6 +2,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
/* Firmware access is platform-dependent. No generic code in uclass */

@ -7,6 +7,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <asm/io.h>
#include <asm/arch-lpc32xx/cpu.h>
#include <asm/arch-lpc32xx/gpio.h>

@ -7,8 +7,8 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <dm.h>
#include <common.h>
#include <dm.h>
#include <sdhci.h>
#include <linux/errno.h>
#include <mach/pic32.h>

@ -7,6 +7,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>
#include <dt-bindings/gpio/meson-gxbb-gpio.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -4,6 +4,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -6,6 +6,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -5,6 +5,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <dm/pinctrl.h>

@ -6,6 +6,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <linux/io.h>
#include <linux/serial_reg.h>

@ -9,6 +9,8 @@
*
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <errno.h>
#include <common.h>

@ -4,6 +4,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <common.h>
#include <dm.h>
#include <sysreset.h>
#include <linux/errno.h>

@ -6,7 +6,7 @@
* SPDX-License-Identifier: GPL-2.0+
*/
#include <config.h>
#include <common.h>
#include <dm.h>
#include <common.h>
#include <display.h>

Loading…
Cancel
Save