drivers: clock_control: Convert drivers to new DT device macros
Convert clock_control drivers from: DEVICE_AND_API_INIT -> DEVICE_DT{_INST}_DEFINE Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
d1cc8357d8
commit
57a402cd0a
10 changed files with 22 additions and 11 deletions
|
@ -308,8 +308,9 @@ static const struct esp32_clock_config esp32_clock_config0 = {
|
|||
.xtal_div = DT_INST_PROP(0, xtal_div),
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(clk_esp32, DT_INST_LABEL(0),
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
&clock_control_esp32_init,
|
||||
device_pm_control_nop,
|
||||
NULL, &esp32_clock_config0,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS,
|
||||
&clock_control_esp32_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue