diff options
| author | Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com> | 2015-05-04 17:04:16 -0400 |
|---|---|---|
| committer | Michael Turquette <mturquette@linaro.org> | 2015-05-08 14:22:30 -0400 |
| commit | 0cd3be6e9a46f84ef7a42e1a5645d32ad547b12e (patch) | |
| tree | bae0942e47885b7ddf6b6ea1897a53abf649b6e4 /include/linux/platform_data | |
| parent | f94029d8801d7c27a94a3ea6c4967aa33c49c34b (diff) | |
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>
Diffstat (limited to 'include/linux/platform_data')
| -rw-r--r-- | include/linux/platform_data/si5351.h | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/include/linux/platform_data/si5351.h b/include/linux/platform_data/si5351.h index a947ab8b441a..533d9807e543 100644 --- a/include/linux/platform_data/si5351.h +++ b/include/linux/platform_data/si5351.h | |||
| @@ -5,8 +5,6 @@ | |||
| 5 | #ifndef __LINUX_PLATFORM_DATA_SI5351_H__ | 5 | #ifndef __LINUX_PLATFORM_DATA_SI5351_H__ |
| 6 | #define __LINUX_PLATFORM_DATA_SI5351_H__ | 6 | #define __LINUX_PLATFORM_DATA_SI5351_H__ |
| 7 | 7 | ||
| 8 | struct clk; | ||
| 9 | |||
| 10 | /** | 8 | /** |
| 11 | * enum si5351_pll_src - Si5351 pll clock source | 9 | * enum si5351_pll_src - Si5351 pll clock source |
| 12 | * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config | 10 | * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config |
| @@ -107,8 +105,6 @@ struct si5351_clkout_config { | |||
| 107 | * @clkout: array of clkout configuration | 105 | * @clkout: array of clkout configuration |
| 108 | */ | 106 | */ |
| 109 | struct si5351_platform_data { | 107 | struct si5351_platform_data { |
| 110 | struct clk *clk_xtal; | ||
| 111 | struct clk *clk_clkin; | ||
| 112 | enum si5351_pll_src pll_src[2]; | 108 | enum si5351_pll_src pll_src[2]; |
| 113 | struct si5351_clkout_config clkout[8]; | 109 | struct si5351_clkout_config clkout[8]; |
| 114 | }; | 110 | }; |
