diff options
author | Horatiu.Vultur@microchip.com <Horatiu.Vultur@microchip.com> | 2019-02-25 10:59:54 +0000 |
---|---|---|
committer | Jagan Teki <jagan@amarulasolutions.com> | 2019-03-04 17:56:26 +0530 |
commit | 1b77de4476637a614d23b34bcfae0b788409389c (patch) | |
tree | 41a1d3a79ea8f73685b3abe26eaca3b57f696b05 /configs/M5485HFE_defconfig | |
parent | cfba74d0bef350d81241b059180bcc5a1e93bdfa (diff) |
spi: designware: Change include order
With current order of include files, the file designware_spi.c
can't see that the struct global_data has the member
board_type when CONFIG_BOARD_TYPES is defined. By not seeing this
then all the members are shifted in the struct global_data.
So when the driver is trying to read from device tree blob, it
would pass the wrong address to the function 'fdtdev_get_int'.
This will make to use the default frequency 500000.
The fix consists of changing the order of include files in
designware_spi.c to include first common.h file.
Signed-off-by: Horatiu Vultur <horatiu.vultur@microchip.com>
Reviewed-by: Jagan Teki <jagan@openedev.com>
Diffstat (limited to 'configs/M5485HFE_defconfig')
0 files changed, 0 insertions, 0 deletions