Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: sec-common: Don't ignore errors from sec_irq_init()

sec_irq_init() can fail, we shouldn't continue and ignore the error in
that case, but actually error out.

Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: André Draszik <andre.draszik@linaro.org>
Link: https://lore.kernel.org/r/20250409-s2mpg10-v4-16-d66d5f39b6bf@linaro.org
Signed-off-by: Lee Jones <lee@kernel.org>

authored by

André Draszik and committed by
Lee Jones
0c33784a fcc7f3b6

+3 -1
+3 -1
drivers/mfd/sec-common.c
··· 183 183 184 184 sec_pmic->pdata = pdata; 185 185 186 - sec_irq_init(sec_pmic); 186 + ret = sec_irq_init(sec_pmic); 187 + if (ret) 188 + return ret; 187 189 188 190 pm_runtime_set_active(sec_pmic->dev); 189 191