summaryrefslogtreecommitdiffstats
path: root/drivers/mfd/twl4030-irq.c
diff options
context:
space:
mode:
authorUwe Kleine-König2017-05-25 22:26:21 +0200
committerLee Jones2017-07-06 09:29:11 +0200
commit485857390927ee359a47f1c528ed6ca5725ddbc9 (patch)
treebe412ca05121dfaa905213728bcf249b127ee294 /drivers/mfd/twl4030-irq.c
parentmfd: arizona: Update GPIO binding for newly supported specifiers (diff)
downloadkernel-qcow2-linux-485857390927ee359a47f1c528ed6ca5725ddbc9.tar.gz
kernel-qcow2-linux-485857390927ee359a47f1c528ed6ca5725ddbc9.tar.xz
kernel-qcow2-linux-485857390927ee359a47f1c528ed6ca5725ddbc9.zip
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>
Diffstat (limited to 'drivers/mfd/twl4030-irq.c')
-rw-r--r--drivers/mfd/twl4030-irq.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mfd/twl4030-irq.c b/drivers/mfd/twl4030-irq.c
index b46c0cfc27d9..378c02d43bf7 100644
--- a/drivers/mfd/twl4030-irq.c
+++ b/drivers/mfd/twl4030-irq.c
@@ -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)