aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAshok G <ashok.g@stericsson.com>2012-02-27 23:51:00 -0500
committerLee Jones <lee.jones@linaro.org>2013-02-04 03:33:26 -0500
commit70bad04f2a30be002d8f4701d98d14259a86391b (patch)
tree0543a655c72245b03291153753889fbb0be677ac
parent5f8aaef4fdf97bfe504ff2c78244a53a145917dc (diff)
mfd: ab8500-debugfs: sizeof() mismatch bugfix
Simple pointer error fix to obtain the expected sizeof() result. Signed-off-by: Lee Jones <lee.jones@linaro.org> Signed-off-by: Ashok G <ashok.g@stericsson.com> Reviewed-by: Mattias WALLIN <mattias.wallin@stericsson.com>
-rw-r--r--drivers/mfd/ab8500-debugfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/ab8500-debugfs.c b/drivers/mfd/ab8500-debugfs.c
index cbebbd7e7b40..b3fb65354567 100644
--- a/drivers/mfd/ab8500-debugfs.c
+++ b/drivers/mfd/ab8500-debugfs.c
@@ -1567,7 +1567,7 @@ static int ab8500_debug_probe(struct platform_device *plf)
1567 ab8500 = dev_get_drvdata(plf->dev.parent); 1567 ab8500 = dev_get_drvdata(plf->dev.parent);
1568 num_irqs = ab8500->mask_size; 1568 num_irqs = ab8500->mask_size;
1569 1569
1570 irq_count = kzalloc(sizeof(irq_count)*num_irqs, GFP_KERNEL); 1570 irq_count = kzalloc(sizeof(*irq_count)*num_irqs, GFP_KERNEL);
1571 if (!irq_count) 1571 if (!irq_count)
1572 return -ENOMEM; 1572 return -ENOMEM;
1573 1573