diff --git a/drivers/base/regmap/regmap-mmio.c b/drivers/base/regmap/regmap-mmio.c index d64a7fc71df822f8b53845bab0ba9392a54a28f3..f05fc74dd84a5f46b8cb32ed3943972fffe056e7 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);