Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 48585739 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Lee Jones
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
parent 7a456cba
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -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)