clk: si5351: Use devm_kcalloc() in si5351_i2c_probe()
authorMarkus Elfring <elfring@users.sourceforge.net>
Wed, 19 Apr 2017 20:37:30 +0000 (22:37 +0200)
committerStephen Boyd <sboyd@codeaurora.org>
Sat, 22 Apr 2017 02:44:42 +0000 (19:44 -0700)
commit9a78b16972fba06bc8d303282a6b96f5061fd16a
treee981255421c205f5c2056557d61a697578d5b78b
parent1e5c844441e6dbf2e2433384ac835b712c35c533
clk: si5351: Use devm_kcalloc() in si5351_i2c_probe()

Multiplications for the size determination of memory allocations
indicated that array data structures should be processed.
Thus use the corresponding function "devm_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/clk-si5351.c