linux-stable/drivers/soc/aspeed
Joel Stanley c8a3b9b50d soc: aspeed: lpc-ctrl: Fix probe error handling
gcc warns that a mising "flash" phandle node leads to undefined
behavior later:

drivers/soc/aspeed/aspeed-lpc-ctrl.c: In function 'aspeed_lpc_ctrl_probe':
drivers/soc/aspeed/aspeed-lpc-ctrl.c:201:18: error: '*((void *)&resm+8)' may be used uninitialized in this function [-Werror=maybe-uninitialized]

Only set the flash base and size if we find a phandle in the device
tree.

Reported-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Andrew Jeffery <andrew@aj.id.au>
Reviewed-by: Vijay Khemka <vijaykhemka@fb.com>
Signed-off-by: Joel Stanley <joel@jms.id.au>
2019-06-22 16:56:35 +09:30
..
aspeed-lpc-ctrl.c soc: aspeed: lpc-ctrl: Fix probe error handling 2019-06-22 16:56:35 +09:30
aspeed-lpc-snoop.c
aspeed-p2a-ctrl.c ARM: SoC-related driver updates 2019-05-16 09:19:14 -07:00
Kconfig ARM: SoC-related driver updates 2019-05-16 09:19:14 -07:00
Makefile ARM: SoC-related driver updates 2019-05-16 09:19:14 -07:00