summaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>2012-07-18 15:17:23 +0200
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-07-18 23:13:53 +0200
commit463351194d826af7ae97fff0ed6f0fe2a4fed615 (patch)
tree664b633aedecd6acdbb62e163436157bccb18452 /drivers/base
parentregmap: Add hook for printk logging for debugging during early init (diff)
downloadlinux-463351194d826af7ae97fff0ed6f0fe2a4fed615.tar.xz
linux-463351194d826af7ae97fff0ed6f0fe2a4fed615.zip
regmap: Fix incorrect arguments to kzalloc() call
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/regmap/regmap-mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index d64a7fc71df8..f05fc74dd84a 100644
--- a/drivers/base/regmap/regmap-mmio.c
+++ b/drivers/base/regmap/regmap-mmio.c
@@ -172,7 +172,7 @@ static struct regmap_mmio_context *regmap_mmio_gen_context(void __iomem *regs,
return ERR_PTR(-EINVAL);
}
- ctx = kzalloc(GFP_KERNEL, sizeof(*ctx));
+ ctx = kzalloc(sizeof(*ctx), GFP_KERNEL);
if (!ctx)
return ERR_PTR(-ENOMEM);