commit | f6ac438e5e9d8052b07ebe43673b88f0496fed8d | [log] [tgz] |
---|---|---|
author | Bartosz Golaszewski <brgl@bgdev.pl> | Fri Jun 09 13:41:32 2017 +0200 |
committer | Linus Walleij <linus.walleij@linaro.org> | Tue Jun 20 09:19:12 2017 +0200 |
tree | 75640647cc58f69b39d74a57c15e8a916394780c | |
parent | c60c7f4c6b679822da0033b3b7c077b0a36fd8e9 [diff] |
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>