clk: si5351: Do not pass struct clk in platform_data
authorSebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Mon, 4 May 2015 21:04:16 +0000 (23:04 +0200)
committerMichael Turquette <mturquette@linaro.org>
Fri, 8 May 2015 18:22:30 +0000 (11:22 -0700)
commit0cd3be6e9a46f84ef7a42e1a5645d32ad547b12e
treebae0942e47885b7ddf6b6ea1897a53abf649b6e4
parentf94029d8801d7c27a94a3ea6c4967aa33c49c34b
clk: si5351: Do not pass struct clk in platform_data

When registering clk-si5351 by platform_data, we should not pass struct clk
for the reference clocks. Drop struct clk from platform_data and rework the
driver to use devm_clk_get of named clock references.

While at it, check for at least one valid input clock and properly prepare/
enable valid reference clocks.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Reported-by: Michael Welling <mwelling@ieee.org>
Reported-by: Jean-Francois Moine <moinejf@free.fr>
Reported-by: Russell King <rmk+linux@arm.linux.org.uk>
Tested-by: Michael Welling <mwelling@ieee.org>
Tested-by: Jean-Francois Moine <moinejf@free.fr>
Signed-off-by: Michael Turquette <mturquette@linaro.org>
drivers/clk/clk-si5351.c
include/linux/platform_data/si5351.h