clk: Use kcalloc() to allocate arrays
authorTomasz Figa <tomasz.figa@gmail.com>
Sun, 29 Sep 2013 00:37:15 +0000 (02:37 +0200)
committer黄涛 <huangtao@rock-chips.com>
Wed, 8 Jan 2014 03:05:49 +0000 (11:05 +0800)
commit862896e2694fb2decbeae6dfcd2586fb288c5ec8
treef6124f689729893b4a3dca636188f8624c3b9785
parent0ab5e56cb4d61e64e0e82d0580b9a463aa69e1f6
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