mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
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: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Lee Jones <lee.jones@linaro.org>
This commit is contained in:
parent
7a456cba37
commit
4858573909
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user