watchdog: mcux: Move to using DT define for driver name
Move from CONFIG_WDT_0_NAME to DT_INST_0_NXP_KINETIS_WDOG_LABEL as the way we get the name. Doing this so we can remove CONFIG_WDT_0_NAME usage. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c111b7e49d
commit
31f525fafc
1 changed files with 2 additions and 1 deletions
|
@ -173,7 +173,8 @@ static const struct mcux_wdog_config mcux_wdog_config_0 = {
|
|||
|
||||
static struct mcux_wdog_data mcux_wdog_data_0;
|
||||
|
||||
DEVICE_AND_API_INIT(mcux_wdog_0, CONFIG_WDT_0_NAME, &mcux_wdog_init,
|
||||
DEVICE_AND_API_INIT(mcux_wdog_0, DT_INST_0_NXP_KINETIS_WDOG_LABEL,
|
||||
&mcux_wdog_init,
|
||||
&mcux_wdog_data_0, &mcux_wdog_config_0,
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&mcux_wdog_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue