diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2012-11-13 03:28:45 -0500 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2012-11-21 10:08:00 -0500 |
commit | 14591d888e35c12b15eccf54e490c7769eb6d6d2 (patch) | |
tree | 16631920135867d55fbdace5073cd89b61446c72 /drivers/mfd/twl6030-irq.c | |
parent | 2473d25a2f61985f8980c7c3d41cb85da1abea0f (diff) |
mfd/rtc/gpio: twl: No need to allocate bigger buffer for write
Since the twl-core has been converted to use regmap it is no longer needed
to allocate bigger buffer for data when writing to twl.
CC: Grant Likely <grant.likely@secretlab.ca>
CC: Alessandro Zummo <a.zummo@towertech.it>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Tero Kristo <t-kristo@ti.com>
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'drivers/mfd/twl6030-irq.c')
-rw-r--r-- | drivers/mfd/twl6030-irq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/mfd/twl6030-irq.c b/drivers/mfd/twl6030-irq.c index b76902f1e44a..277a8dba42d5 100644 --- a/drivers/mfd/twl6030-irq.c +++ b/drivers/mfd/twl6030-irq.c | |||
@@ -355,7 +355,7 @@ int twl6030_init_irq(struct device *dev, int irq_num) | |||
355 | static struct irq_chip twl6030_irq_chip; | 355 | static struct irq_chip twl6030_irq_chip; |
356 | int status = 0; | 356 | int status = 0; |
357 | int i; | 357 | int i; |
358 | u8 mask[4]; | 358 | u8 mask[3]; |
359 | 359 | ||
360 | nr_irqs = TWL6030_NR_IRQS; | 360 | nr_irqs = TWL6030_NR_IRQS; |
361 | 361 | ||
@@ -370,9 +370,9 @@ int twl6030_init_irq(struct device *dev, int irq_num) | |||
370 | 370 | ||
371 | irq_end = irq_base + nr_irqs; | 371 | irq_end = irq_base + nr_irqs; |
372 | 372 | ||
373 | mask[0] = 0xFF; | ||
373 | mask[1] = 0xFF; | 374 | mask[1] = 0xFF; |
374 | mask[2] = 0xFF; | 375 | mask[2] = 0xFF; |
375 | mask[3] = 0xFF; | ||
376 | 376 | ||
377 | /* mask all int lines */ | 377 | /* mask all int lines */ |
378 | twl_i2c_write(TWL_MODULE_PIH, &mask[0], REG_INT_MSK_LINE_A, 3); | 378 | twl_i2c_write(TWL_MODULE_PIH, &mask[0], REG_INT_MSK_LINE_A, 3); |