From: Dimitris Papastamos Date: Wed, 18 Jul 2012 13:17:23 +0000 (+0100) Subject: regmap: Fix incorrect arguments to kzalloc() call X-Git-Tag: v3.6-rc1~158^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=463351194d826af7ae97fff0ed6f0fe2a4fed615;p=~emulex%2Finfiniband.git regmap: Fix incorrect arguments to kzalloc() call Signed-off-by: Dimitris Papastamos Signed-off-by: Mark Brown --- diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c index d64a7fc71df..f05fc74dd84 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);