mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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:
parent
fcc7f3b675
commit
0c33784aea
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue