regmap: Fix incorrect arguments to kzalloc() call
Subsystems (2)
PATCH 1/1 regmap: Fix incorrect arguments to kzalloc() call
Signed-off-by Dimitris Papastamos <[email protected]>
--- drivers/base/regmap/regmap-mmio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/base/regmap/regmap-mmio.c +1 -1
@@ -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 );
Signature · 1 line
1.7.11.2