History

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.

Sebastian Hesselbarth committed 11 years ago

Commit 0cd3be61 parent f94029d2 files · +45 −22Browse files

Showing the changes to include/linux/platform_data (1 of 2 files). Show all

Unified · Split

include/linux/platform_data/si5351.h+0−4
@@ -5,8 +5,6 @@ · 4 unmodified lines
55 #ifndef __LINUX_PLATFORM_DATA_SI5351_H__
66 #define __LINUX_PLATFORM_DATA_SI5351_H__
77
8−struct clk;
9−
108 /**
119 * enum si5351_pll_src - Si5351 pll clock source
1210 * @SI5351_PLL_SRC_DEFAULT: default, do not change eeprom config
@@ -107,8 +105,6 @@ struct si5351_clkout_config { · 94 unmodified lines
107105 * @clkout: array of clkout configuration
108106 */
109107 struct si5351_platform_data {
110− struct clk *clk_xtal;
111− struct clk *clk_clkin;
112108 enum si5351_pll_src pll_src[2];
113109 struct si5351_clkout_config clkout[8];
114110 };

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t