]> git.karo-electronics.de Git - karo-tx-linux.git/commit
clk: mvebu: Use kcalloc() in of_cpu_clk_setup()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Apr 2017 18:15:21 +0000 (20:15 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 22 Apr 2017 02:49:13 +0000 (19:49 -0700)
commit23826e240ad82727635eb84fff1211dd2ff750fb
tree9057cae4e1374fb42d3d3ef3c8760fcb1c443b3d
parent24f8186eb8d69a3a0d856ce59fb4f19ae23ff23a
clk: mvebu: Use kcalloc() in of_cpu_clk_setup()

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "kcalloc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/mvebu/clk-cpu.c