提交 48585739 编写于 作者: U Uwe Kleine-König 提交者: Lee Jones

mfd: twl4030-irq: Log an error in twl4030_sih_setup if the module cannot be found

As silently failing isn't that nice, emit an error message at a place
that was silent on failure up to now.
Signed-off-by: NUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: NLee Jones <lee.jones@linaro.org>
上级 7a456cba
......@@ -638,8 +638,10 @@ int twl4030_sih_setup(struct device *dev, int module, int irq_base)
}
}
if (status < 0)
if (status < 0) {
dev_err(dev, "module to setup SIH for not found\n");
return status;
}
agent = kzalloc(sizeof(*agent), GFP_KERNEL);
if (!agent)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册