regmap: Fix incorrect arguments to kzalloc() call
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 18 Jul 2012 13:17:23 +0000 (14:17 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 18 Jul 2012 21:13:53 +0000 (22:13 +0100)
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-mmio.c

index d64a7fc..f05fc74 100644 (file)
@@ -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);