watchdog: cmsdk: Convert to use DT generated label for device name
Convert driver to use DT_INST_0_ARM_CMSDK_WATCHDOG_LABEL instead of CONFIG_WDT_0_NAME. This requires we introduce a "label" property in all the related dts files. Also introduce a standard watchdog alias ('watchdog0') that can be utilized by sample/test code in the future. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
418f34d955
commit
c111b7e49d
10 changed files with 20 additions and 1 deletions
|
@ -197,7 +197,7 @@ static int wdog_cmsdk_apb_init(struct device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_AND_API_INIT(wdog_cmsdk_apb, CONFIG_WDT_0_NAME,
|
||||
DEVICE_AND_API_INIT(wdog_cmsdk_apb, DT_INST_0_ARM_CMSDK_WATCHDOG_LABEL,
|
||||
wdog_cmsdk_apb_init,
|
||||
NULL, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue