drivers: counter: Convert drivers to new DT device macros
Convert counter drivers to use new DT variants of the DEVICE APIs. DEVICE_AND_API_INIT -> DEVICE_DT_DEFINE DEVICE_GET -> DEVICE_DT_GET DEVICE_DECLARE -> DEVICE_DT_INST_DECLARE etc.. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c17b6a2584
commit
93c6e1d2f6
16 changed files with 48 additions and 46 deletions
|
@ -277,7 +277,7 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
|
|||
},
|
||||
};
|
||||
|
||||
DEVICE_AND_API_INIT(rtc, DT_INST_LABEL(0), &mcux_rtc_init,
|
||||
DEVICE_DT_INST_DEFINE(0, &mcux_rtc_init, device_pm_control_nop,
|
||||
&mcux_rtc_data_0, &mcux_rtc_config_0.info,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&mcux_rtc_driver_api);
|
||||
|
@ -286,6 +286,6 @@ static void mcux_rtc_irq_config_0(const struct device *dev)
|
|||
{
|
||||
IRQ_CONNECT(DT_INST_IRQN(0),
|
||||
DT_INST_IRQ(0, priority),
|
||||
mcux_rtc_isr, DEVICE_GET(rtc), 0);
|
||||
mcux_rtc_isr, DEVICE_DT_INST_GET(0), 0);
|
||||
irq_enable(DT_INST_IRQN(0));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue