clk: stm32f4: Use CLK_OF_DECLARE_DRIVER initialization method
authorGabriel Fernandez <gabriel.fernandez@st.com>
Wed, 14 Dec 2016 14:22:28 +0000 (15:22 +0100)
committerStephen Boyd <sboyd@codeaurora.org>
Thu, 22 Dec 2016 00:33:14 +0000 (16:33 -0800)
commit3868f132cce6abab089fd6b12d6a7333712ade83
tree7079125030caec17ec98c97ccb5dee734c65ae02
parente2a33c34ddff22ee208d80abdd12b88a98d6cb60
clk: stm32f4: Use CLK_OF_DECLARE_DRIVER initialization method

Clock and reset controller use same compatible strings (same IP).

Since commit 989eafd0b609 ("clk: core: Avoid double initialization of
clocks") the OF core flags clock controllers registered with the
CLK_OF_DECLARE() macro as OF_POPULATED, so platform devices with the same
compatible string will not be registered.

Signed-off-by: Gabriel Fernandez <gabriel.fernandez@st.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/clk-stm32f4.c