gpio: mockup: use devm_kcalloc() where applicable
authorBartosz Golaszewski <brgl@bgdev.pl>
Fri, 9 Jun 2017 11:41:32 +0000 (13:41 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Jun 2017 07:19:12 +0000 (09:19 +0200)
commitf6ac438e5e9d8052b07ebe43673b88f0496fed8d
tree75640647cc58f69b39d74a57c15e8a916394780c
parentc60c7f4c6b679822da0033b3b7c077b0a36fd8e9
gpio: mockup: use devm_kcalloc() where applicable

When allocating a zeroed array of objects use devm_kcalloc() instead
of manually calculating the required size and using devm_kzalloc().

Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mockup.c