drivers: clock_control: stm32: Convert drivers to new DT device macros
Convert clock_control drivers from: DEVICE_AND_API_INIT -> DEVICE_DT_DEFINE As part of this we also changed STM32_CLOCK_CONTROL_NAME to be based on devicetree. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
57a402cd0a
commit
20689c17d4
4 changed files with 7 additions and 4 deletions
|
@ -568,8 +568,9 @@ static int stm32_clock_control_init(const struct device *dev)
|
|||
* @brief RCC device, note that priority is intentionally set to 1 so
|
||||
* that the device init runs just after SOC init
|
||||
*/
|
||||
DEVICE_AND_API_INIT(rcc_stm32, STM32_CLOCK_CONTROL_NAME,
|
||||
DEVICE_DT_DEFINE(DT_NODELABEL(rcc),
|
||||
&stm32_clock_control_init,
|
||||
device_pm_control_nop,
|
||||
NULL, NULL,
|
||||
PRE_KERNEL_1,
|
||||
CONFIG_CLOCK_CONTROL_STM32_DEVICE_INIT_PRIORITY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue