]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit13919d7850bcdc42274c3356c5f24f349b79636d
tree7079125030caec17ec98c97ccb5dee734c65ae02
parent8c84d5c1f461cbdfede834d2eb74e2ec3bf9ab17
clk: stm32f4: Use CLK_OF_DECLARE_DRIVER initialization method

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

Since commit c58b0308246e ("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