gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies
authorThierry Reding <treding@nvidia.com>
Mon, 24 Jul 2017 14:55:06 +0000 (16:55 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 14 Aug 2017 13:01:13 +0000 (15:01 +0200)
commit9b88226924cf640059aacba7af23d048c6ec03b1
tree1473228deb38ebf4711e3655230a024b8912c0be
parent20133bd5ebbb58cdf224c769dea2a475c746bc1a
gpio: tegra: Prefer kcalloc() over kzalloc() with multiplies

Rather than manually compute the size of an array, pass the number and
element size to kcalloc().

Signed-off-by: Thierry Reding <treding@nvidia.com>
Acked-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-tegra.c