aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/mfd/stmpe.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index 02a17c388e87..f9d46f035bb1 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -249,7 +249,7 @@ int stmpe_set_altfunc(struct stmpe *stmpe, u32 pins, enum stmpe_block block)
249 int af_bits = variant->af_bits; 249 int af_bits = variant->af_bits;
250 int numregs = DIV_ROUND_UP(stmpe->num_gpios * af_bits, 8); 250 int numregs = DIV_ROUND_UP(stmpe->num_gpios * af_bits, 8);
251 int mask = (1 << af_bits) - 1; 251 int mask = (1 << af_bits) - 1;
252 u8 regs[numregs]; 252 u8 regs[8];
253 int af, afperreg, ret; 253 int af, afperreg, ret;
254 254
255 if (!variant->get_altfunc) 255 if (!variant->get_altfunc)
@@ -854,7 +854,7 @@ static irqreturn_t stmpe_irq(int irq, void *data)
854 struct stmpe_variant_info *variant = stmpe->variant; 854 struct stmpe_variant_info *variant = stmpe->variant;
855 int num = DIV_ROUND_UP(variant->num_irqs, 8); 855 int num = DIV_ROUND_UP(variant->num_irqs, 8);
856 u8 israddr; 856 u8 israddr;
857 u8 isr[num]; 857 u8 isr[3];
858 int ret; 858 int ret;
859 int i; 859 int i;
860 860