Message ID | 20250323-s2mpg10-v1-19-d08943702707@linaro.org |
---|---|
State | New |
Headers | show |
Series | Samsung S2MPG10 PMIC MFD-based drivers | expand |
On 23/03/2025 23:39, André Draszik wrote: > sec_irq_init() can fail, we shouldn't continue and ignore the error in > that case, but actually error out. > > Signed-off-by: André Draszik <andre.draszik@linaro.org> > --- > drivers/mfd/sec-common.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> That's a big patchset, I finished here. I will go over the rest some other day or when you send v2. Best regards, Krzysztof
diff --git a/drivers/mfd/sec-common.c b/drivers/mfd/sec-common.c index 5e084e2c389ea6d509393be93f7e2d39a795a60c..bec8f93a03f7fd794beade563d73610534cb96b2 100644 --- a/drivers/mfd/sec-common.c +++ b/drivers/mfd/sec-common.c @@ -165,7 +165,9 @@ int sec_pmic_probe(struct device *dev, unsigned long device_type, pdata->disable_wrstbi = probedata->disable_wrstbi; } - sec_irq_init(sec_pmic); + ret = sec_irq_init(sec_pmic); + if (ret) + return ret; pm_runtime_set_active(sec_pmic->dev);
sec_irq_init() can fail, we shouldn't continue and ignore the error in that case, but actually error out. Signed-off-by: André Draszik <andre.draszik@linaro.org> --- drivers/mfd/sec-common.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)