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>
This commit is contained in:
André Draszik 2025-04-09 21:37:37 +01:00 committed by Lee Jones
parent fcc7f3b675
commit 0c33784aea

View file

@ -183,7 +183,9 @@ int sec_pmic_probe(struct device *dev, unsigned long device_type,
sec_pmic->pdata = pdata;
sec_irq_init(sec_pmic);
ret = sec_irq_init(sec_pmic);
if (ret)
return ret;
pm_runtime_set_active(sec_pmic->dev);