diff options
author | Dimitris Papastamos <dp@opensource.wolfsonmicro.com> | 2012-07-18 14:17:23 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-07-18 22:13:53 +0100 |
commit | 463351194d826af7ae97fff0ed6f0fe2a4fed615 (patch) | |
tree | 664b633aedecd6acdbb62e163436157bccb18452 /drivers/base | |
parent | 1044c180de4ba426aa5fb1b4b13b5f219ddb7105 (diff) | |
download | linux-463351194d826af7ae97fff0ed6f0fe2a4fed615.tar.bz2 |
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); |