OSDN Git Service

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)
committerLee Jones <lee.jones@linaro.org>
Thu, 27 Apr 2017 08:25:07 +0000 (09:25 +0100)
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>
drivers/mfd/motorola-cpcap.c

index a6c0c34..3cab58a 100644 (file)
@@ -116,7 +116,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,
        },