drivers: wdt_nrfx: Handle PM callback properly
All drivers must have power management callbacks specified. Signed-off-by: Pawel Dunaj <pawel.dunaj@nordicsemi.no>
This commit is contained in:
parent
6d911b8f2c
commit
e0ed8ebac4
|
@ -181,13 +181,13 @@ static void wdt_event_handler(struct device *dev)
|
|||
.reload_value = 2000, \
|
||||
} \
|
||||
}; \
|
||||
DEVICE_DEFINE(wdt_##idx, DT_NORDIC_NRF_WATCHDOG_WDT_##idx##_LABEL, \
|
||||
wdt_##idx##_init, \
|
||||
NULL, \
|
||||
&wdt_##idx##_data, \
|
||||
&wdt_##idx##z_config, \
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&wdt_nrfx_driver_api)
|
||||
DEVICE_AND_API_INIT(wdt_##idx, \
|
||||
DT_NORDIC_NRF_WATCHDOG_WDT_##idx##_LABEL, \
|
||||
wdt_##idx##_init, \
|
||||
&wdt_##idx##_data, \
|
||||
&wdt_##idx##z_config, \
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&wdt_nrfx_driver_api)
|
||||
|
||||
#ifdef CONFIG_NRFX_WDT0
|
||||
WDT_NRFX_WDT_DEVICE(0);
|
||||
|
|
Loading…
Reference in a new issue