summaryrefslogtreecommitdiff
path: root/tools/testing
diff options
context:
space:
mode:
authorChunyan Zhang <chunyan.zhang@unisoc.com>2020-12-09 13:51:06 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-30 11:25:45 +0100
commit5239367f6639c99a300404a40bd4c45509e268dd (patch)
tree321c2ef743576e61c8a2c73e85d728bc591ed03f /tools/testing
parent98ab3ff5e789985ec8c24f813c7a989b445da084 (diff)
gpio: eic-sprd: break loop when getting NULL device resource
[ Upstream commit 263ade7166a2e589c5b605272690c155c0637dcb ] EIC controller have unfixed numbers of banks on different Spreadtrum SoCs, and each bank has its own base address, the loop of getting there base address in driver should break if the resource gotten via platform_get_resource() is NULL already. The later ones would be all NULL even if the loop continues. Fixes: 25518e024e3a ("gpio: Add Spreadtrum EIC driver support") Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com> Link: https://lore.kernel.org/r/20201209055106.840100-1-zhang.lyra@gmail.com Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'tools/testing')
0 files changed, 0 insertions, 0 deletions