diff options
author | André Draszik <andre.draszik@linaro.org> | 2025-04-09 21:37:37 +0100 |
---|---|---|
committer | Lee Jones <lee@kernel.org> | 2025-05-23 08:48:41 +0100 |
commit | 0c33784aeaeb8867682e520bf28042b6ffce200a (patch) | |
tree | 06b4d13f64d77f0308bf6d499c2f87b2b26e5794 | |
parent | fcc7f3b675b26c81ba07dc35eb849e6ea9afce7f (diff) |
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>
-rw-r--r-- | drivers/mfd/sec-common.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/sec-common.c b/drivers/mfd/sec-common.c index f4c606c5ee5a..bb0eb3c2d9a2 100644 --- a/drivers/mfd/sec-common.c +++ b/drivers/mfd/sec-common.c @@ -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); |