Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Uwe Kleine-König and committed by
Lee Jones
48585739 7a456cba

+3 -1
+3 -1
drivers/mfd/twl4030-irq.c
··· 638 638 } 639 639 } 640 640 641 - if (status < 0) 641 + if (status < 0) { 642 + dev_err(dev, "module to setup SIH for not found\n"); 642 643 return status; 644 + } 643 645 644 646 agent = kzalloc(sizeof(*agent), GFP_KERNEL); 645 647 if (!agent)