u-boot/drivers
Jagan Teki 0cbee8544b spi: atcspi200: Change include order
Like clk_get_by_index, there is requirement for
clk_get_by_index_nodev. In this case to make common
code functionalities for dev and nodev, clk_get_by_index
is trying to get the index of clock by passing ofnode
instead of actual dev like current gpio uclass does.

In these scenarios with current order of include files
the atcspi200_spi driver is unable to find CONFIG_ENV_SIZE.

In file included from arch/nds32/include/asm/u-boot.h:24,
                 from include/dm/of.h:10,
                 from include/dm/ofnode.h:12,
                 from include/clk.h:11,
                 from drivers/spi/atcspi200_spi.c:9:
include/environment.h:145:19: error: 'CONFIG_ENV_SIZE'
undeclared here (not in a function); did you mean 'CONFIG_CMD_XIMG'?
 #define ENV_SIZE (CONFIG_ENV_SIZE - ENV_HEADER_SIZE)

So, fix consists of changing the order of include files
in atcspi200_spi.c to include first common.h file.

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Jagan Teki <jagan@amarulasolutions.com>
2019-05-09 00:42:55 +05:30
..
adc adc: exynos-adc: Fix wrong bit operation used to stop the ADC 2019-03-11 15:53:19 +09:00
ata Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2019-04-17 09:19:45 -04:00
axi drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bios_emulator bios_emulator: remove assignment without effect 2018-07-23 14:33:21 -04:00
block blk: Increase cache element size 2019-01-15 15:28:53 -05:00
board drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
bootcount bootcount: add a DM RTC backing store for bootcount 2018-12-10 10:04:45 +01:00
clk Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2019-04-17 09:19:45 -04:00
core dm: remove unused function dm_fdt_pre_reloc 2019-04-11 20:10:48 -06:00
cpu cpu: Bind timer driver for boot hart 2019-02-27 09:12:33 +08:00
crypto SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ddr arm: mvebu: Add Marvell's integrated CPUs 2019-04-12 07:04:18 +02:00
demo SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
dfu dfu: mmc: call fs functions instead of run_command 2019-01-30 21:22:53 -05:00
dma - mt76xx: add USB support, small fixes 2019-04-13 08:27:26 -04:00
fastboot fastboot: common: fix default fastboot_boot on 64-bit 2019-03-16 13:29:43 +01:00
firmware firmware: Add support for querying msmc memory 2019-04-12 08:05:50 -04:00
fpga arm: zynq: Add an info message about post config 2019-04-16 11:51:34 +02:00
gpio gpio: bcm6345: allow this driver on ARCH_BCM63158 2019-04-12 17:32:51 +02:00
hwspinlock hwspinlock: add stm32 hardware spinlock support 2018-12-06 23:26:33 -05:00
i2c i2c: muxes: pca954x: support PCA9543 I2C switch 2019-04-11 15:21:33 +02:00
input Kconfig: tegra: Migrate TEGRA_KEYBOARD 2019-02-20 09:01:45 -07:00
led dm: led: move default state support in led uclass 2018-08-10 10:27:32 -04:00
mailbox drivers: cosmetic: Convert SPDX license tags to Linux Kernel style 2018-10-28 09:26:39 -04:00
memory SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
misc configs: move CONFIG_MXC_OCOTP to Kconfig 2019-04-13 20:30:09 +02:00
mmc ARC: dwmmc: Adding DesignWare MMC driver support for ARC devboards 2019-04-18 09:12:38 +03:00
mtd Merge branch 'master' of git://git.denx.de/u-boot-spi 2019-04-14 00:03:06 -04:00
net Merge branch 'master' of git://git.denx.de/u-boot-sunxi 2019-04-17 09:19:45 -04:00
nvme blk: Call part_init() in the post_probe() method 2018-11-14 09:16:27 -08:00
pch pch: Add ioctl support 2019-02-20 15:27:08 +08:00
pci pci: pci_mvebu: Add comment about missing of_n_addr_cells() call 2019-03-19 09:22:05 +01:00
pcmcia SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
phy phy: Add USB PHY driver for the MT76x8 (7628/7688) SoC 2019-04-12 17:32:53 +02:00
pinctrl fdtdec tests and improvements for carve-outs 2019-04-13 08:27:35 -04:00
power stm32 patches for v2019.07-rc1 2019-04-12 15:43:19 -04:00
pwm pwm: sunxi: choose best prescaler to improve PWM resolution 2018-10-24 21:57:16 +05:30
qe drivers: qe: add TFABOOT support 2018-12-06 14:37:51 -08:00
ram stm32mp1: add trusted boot with TF-A 2019-04-12 16:09:13 +02:00
remoteproc spl: Allow remoteproc drivers to be used within SPL 2018-09-11 08:32:55 -04:00
reset reset: Add Allwinner RESET driver 2019-01-18 22:19:08 +05:30
rtc rtc: m41t62: Convert the RTC driver to support the driver model (DM) 2018-12-03 10:44:10 -05:00
scsi dm: scsi: report correct device number 2019-02-19 08:55:43 -05:00
serial serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL 2019-04-09 09:28:50 +03:00
smem drivers: smem: sandbox 2018-07-19 16:31:38 -04:00
soc soc: keystone: Merge into ti specific directory 2019-04-11 20:07:12 -04:00
sound x86: Add sound support for samus 2019-02-20 15:27:11 +08:00
spi spi: atcspi200: Change include order 2019-05-09 00:42:55 +05:30
spmi SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sysreset sysreset: use syscon_regmap_lookup_by_phandle 2019-04-11 20:10:05 -06:00
tee tee: change return code for REE FS supplicant cmd 2018-12-15 11:49:19 -05:00
thermal SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
timer x86: tsc: Add support for native calibration of TSC freq 2019-02-12 14:37:16 +08:00
tpm tpm: Export the open/close functions 2018-11-29 09:30:06 -07:00
usb configs: move CONFIG_USB_EHCI_VF to Kconfig 2019-04-13 20:30:09 +02:00
video Move to DM 2019-04-15 07:31:14 -04:00
virtio virtio: Add a Sandbox transport driver 2018-11-14 09:16:28 -08:00
w1 w1: Add driver for i.MX bus master controller 2019-01-01 14:12:18 +01:00
w1-eeprom w1-eeprom: Add support for Maxim DS2502 add only memory 2018-11-16 16:51:55 -05:00
watchdog watchdog: orion_wdt: take timeout value in ms 2019-04-12 07:04:18 +02:00
Kconfig soc: ti: k3: add navss ringacc driver 2019-04-11 20:07:12 -04:00
Makefile x86: sandbox: pch: Add a CONFIG option for PCH 2019-02-20 15:25:30 +08:00