mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set
authorMatthias Schiffer <matthias.schiffer@ew.tq-group.com>
Fri, 16 Jul 2021 10:00:48 +0000 (12:00 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 16 Aug 2021 12:49:34 +0000 (13:49 +0100)
commita946506c48f3bd09363c9d2b0a178e55733bcbb6
treee2bae41d9a44d26aace3144dc23bedf7423d540f
parentc753ea31781aaab2dccc3e6f297cfde3c99f0ba1
mfd: tqmx86: Clear GPIO IRQ resource when no IRQ is set

The driver was registering IRQ 0 when no IRQ was set. This leads to
warnings with newer kernels.

Clear the resource flags, so no resource is registered at all in this
case.

Fixes: 2f17dd34ffed ("mfd: tqmx86: IO controller with I2C, Wachdog and GPIO")
Signed-off-by: Matthias Schiffer <matthias.schiffer@ew.tq-group.com>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
drivers/mfd/tqmx86.c