Commit 5481df0e authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman
Browse files

mfd: syscon: Use scoped variables with memory allocators to simplify error paths



[ Upstream commit 82f898f4 ]

Allocate the memory with scoped/cleanup.h to reduce error handling and
make the code a bit simpler.

Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20240707114823.9175-2-krzysztof.kozlowski@linaro.org


Signed-off-by: default avatarLee Jones <lee@kernel.org>
Stable-dep-of: 805f7aaf ("mfd: syscon: Fix race in device_node_get_regmap()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 166fd2aa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment