summaryrefslogtreecommitdiff
path: root/scripts/const_structs.checkpatch
diff options
context:
space:
mode:
authorKaustabh Chakraborty <[email protected]>2025-10-21 19:51:35 +0530
committerMinkyu Kang <[email protected]>2025-11-25 19:00:47 +0900
commit4937a9778cfb22cad3f411522c62a14d5242e55e (patch)
tree9263db6864c1b86b7d195a76c35ea3bef0492950 /scripts/const_structs.checkpatch
parent1ca7bcdb9d6489caa55742a2938be2091d24e3b2 (diff)
gpio: s5p: increment bank base address only if bank is initialized
There is a condition guard which ensures that the GPIO node, indeed describes a GPIO controller. if (!fdtdec_get_bool(blob, node, "gpio-controller")) continue; Since the bank base is being incremented in the loop, it is done so irrespective of whether the node is a GPIO controller or not. This leads to the incorrect resolution of bank base addresses. Move it out of the loop, and instead increment the bank base address only if the driver successfully binds a GPIO controller. Reviewed-by: Henrik Grimler <[email protected]> Fixes: b8809e60cdb5 ("dm: exynos: gpio: Convert to driver model") Signed-off-by: Kaustabh Chakraborty <[email protected]> Signed-off-by: Minkyu Kang <[email protected]>
Diffstat (limited to 'scripts/const_structs.checkpatch')
0 files changed, 0 insertions, 0 deletions