regmap: replace kmalloc with kmalloc_array
authorlixiubo <lixiubo@cmss.chinamobile.com>
Fri, 20 Nov 2015 10:06:30 +0000 (18:06 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 20 Nov 2015 12:27:59 +0000 (12:27 +0000)
commit549e08a0a93442ab62e0aee8aeb8ae6a7f2b5273
tree9bf090c5b8126d10c939fbc3ed8070858d22c951
parenteeda1bd69d5d8a020ce191f717b94ca99707daad
regmap: replace kmalloc with kmalloc_array

Replace kmalloc with specialized function kmalloc_array when the size
is a multiplication of : number * size

Signed-off-by: lixiubo <lixiubo@cmss.chinamobile.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regcache-lzo.c
drivers/base/regmap/regcache-rbtree.c
drivers/base/regmap/regmap-irq.c