clk: mvebu: Use kcalloc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Apr 2017 19:08:54 +0000 (21:08 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 22 Apr 2017 02:49:34 +0000 (19:49 -0700)
commitee7d74339df71015ae5b98d91393ea80b72a4546
treeef5b97cfbe4565b5a122a2c424b9ed9b28fab6cd
parent23826e240ad82727635eb84fff1211dd2ff750fb
clk: mvebu: Use kcalloc() in two functions

* 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.

* Replace the specification of data types by pointer dereferences
  to make the corresponding size determination a bit safer according to
  the Linux coding style convention.

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