clk: Use kcalloc() to allocate arrays
commit96a7ed9079a3483c5681b17f4713c37c1cf2b1c9
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 29 Sep 2013 00:37:15 +0000 (29 02:37 +0200)
committerMike Turquette <mturquette@linaro.org>
Wed, 2 Oct 2013 01:40:16 +0000 (1 18:40 -0700)
tree774e563607a79fc5214f628698eb607d8a11c37d
parentf1c8b2edf916b5be9dc29e98989a5eaff3c6e75b
clk: Use kcalloc() to allocate arrays

Instead of calculating sizes of arrays manually, kcalloc() can be used
to allocate arrays of elements with defined size. This is just a cleanup
patch without any functional changes.

Signed-off-by: Tomasz Figa <tomasz.figa@gmail.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
drivers/clk/clk.c