drivers: watchdog: Convert drivers to new DT device macros
Convert watchdog 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
f105455ebe
commit
e376b9417b
13 changed files with 41 additions and 37 deletions
|
@ -199,8 +199,9 @@ static int wdog_cmsdk_apb_init(const struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_AND_API_INIT(wdog_cmsdk_apb, DT_INST_LABEL(0),
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
wdog_cmsdk_apb_init,
|
||||
device_pm_control_nop,
|
||||
NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&wdog_cmsdk_apb_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue