diff options
author | Joel Stanley <joel@jms.id.au> | 2019-06-20 11:17:38 +0200 |
---|---|---|
committer | Joel Stanley <joel@jms.id.au> | 2019-06-22 09:26:35 +0200 |
commit | c8a3b9b50d8331528fc8d03aadd1fec3d60362d7 (patch) | |
tree | 5b82051ee7d05157eb143a5cbb6748d2c6f9ab3e /drivers/soc/bcm/brcmstb/common.c | |
parent | soc: aspeed: lpc-ctrl: make parameter optional (diff) | |
download | linux-c8a3b9b50d8331528fc8d03aadd1fec3d60362d7.tar.xz linux-c8a3b9b50d8331528fc8d03aadd1fec3d60362d7.zip |
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>
Diffstat (limited to 'drivers/soc/bcm/brcmstb/common.c')
0 files changed, 0 insertions, 0 deletions