diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2012-07-18 15:17:23 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-18 23:13:53 +0200 |
commit | 463351194d826af7ae97fff0ed6f0fe2a4fed615 (patch) | |
tree | 664b633aedecd6acdbb62e163436157bccb18452 /drivers/base | |
parent | regmap: Add hook for printk logging for debugging during early init (diff) | |
download | linux-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.c | 2 |
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); |