Skip to content

Commit 0c33784

Browse files
andredlag-linaro
authored andcommitted
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>
1 parent fcc7f3b commit 0c33784

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

drivers/mfd/sec-common.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ int sec_pmic_probe(struct device *dev, unsigned long device_type,
183183

184184
sec_pmic->pdata = pdata;
185185

186-
sec_irq_init(sec_pmic);
186+
ret = sec_irq_init(sec_pmic);
187+
if (ret)
188+
return ret;
187189

188190
pm_runtime_set_active(sec_pmic->dev);
189191

0 commit comments

Comments
 (0)