]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
mfd: cpcap: Fix bad use of IRQ sense register
authorTony Lindgren <tony@atomide.com>
Tue, 4 Apr 2017 03:15:56 +0000 (20:15 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 24 Jun 2017 05:06:17 +0000 (07:06 +0200)
commit be269180c9335c257a2763c3fd3a44e65c90c1f0 upstream.

The cpcap INTS registers are for getting the value of the line,
not for configuring the type.

Fixes: 56e1d40d3bea ("mfd: cpcap: Add minimal support")
Reviewed-By: Sebastian Reichel <sre@kernel.org>
Tested-by: Sebastian Reichel <sre@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/motorola-cpcap.c

index 1d3fec0aa1668dfec3bbe4084b0d2a321dd8db7b..bc26079e9737de2079e42b3289fb1fd5cc67a47c 100644 (file)
@@ -88,7 +88,6 @@ static struct regmap_irq_chip cpcap_irq_chip[CPCAP_NR_IRQ_CHIPS] = {
                .status_base = CPCAP_REG_INT1,
                .ack_base = CPCAP_REG_INT1,
                .mask_base = CPCAP_REG_INTM1,
-               .type_base = CPCAP_REG_INTS1,
                .use_ack = true,
                .ack_invert = true,
        },