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 <[email protected]> Signed-off-by: André Draszik <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lee Jones <[email protected]>
1 parent fcc7f3b commit 0c33784

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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)