* [PATCH] regmap: Fix incorrect arguments to kzalloc() call
@ 2012-07-18 13:17 Dimitris Papastamos
0 siblings, 0 replies; only message in thread
From: Dimitris Papastamos @ 2012-07-18 13:17 UTC (permalink / raw)
To: Mark Brown; +Cc: Stephen Warren, linux-kernel, patches
Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
---
drivers/base/regmap/regmap-mmio.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c
index d64a7fc..f05fc74 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);
--
1.7.11.2
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-07-18 13:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-18 13:17 [PATCH] regmap: Fix incorrect arguments to kzalloc() call Dimitris Papastamos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome