gpiolib: Change bitmap allocation to kmalloc_array
authorStephen Boyd <swboyd@chromium.org>
Fri, 23 Mar 2018 16:34:51 +0000 (09:34 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 27 Mar 2018 13:34:13 +0000 (15:34 +0200)
commitace56935ff48879239d79129c7882ea2ff1b4804
tree76ef74a6bf7640a4a2cacff581aa7fe49070ee8f
parente4371f6e079294369ecb4cfa03aaeb60831e8b91
gpiolib: Change bitmap allocation to kmalloc_array

We don't need to clear out these bits when we set them immediately
after. Use kmalloc_array() to skip clearing the bits.

Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Stephen Boyd <swboyd@chromium.org>
Tested-by: Timur Tabi <timur@codeaurora.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c