diff options
author | Chunyan Zhang <[email protected]> | 2020-12-09 13:51:06 +0800 |
---|---|---|
committer | Linus Walleij <[email protected]> | 2020-12-09 09:41:49 +0100 |
commit | 263ade7166a2e589c5b605272690c155c0637dcb (patch) | |
tree | 956cd786390a72718d09d59d0a7518fd15f67e1e /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 77c12bf3839479c3963433043e2051d738f3ab63 (diff) |
gpio: eic-sprd: break loop when getting NULL device resource
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Linus Walleij <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions