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
1 changed files with 7 additions and 7 deletions
|
@ -181,13 +181,13 @@ static void wdt_event_handler(struct device *dev)
|
||||||
.reload_value = 2000, \
|
.reload_value = 2000, \
|
||||||
} \
|
} \
|
||||||
}; \
|
}; \
|
||||||
DEVICE_DEFINE(wdt_##idx, DT_NORDIC_NRF_WATCHDOG_WDT_##idx##_LABEL, \
|
DEVICE_AND_API_INIT(wdt_##idx, \
|
||||||
wdt_##idx##_init, \
|
DT_NORDIC_NRF_WATCHDOG_WDT_##idx##_LABEL, \
|
||||||
NULL, \
|
wdt_##idx##_init, \
|
||||||
&wdt_##idx##_data, \
|
&wdt_##idx##_data, \
|
||||||
&wdt_##idx##z_config, \
|
&wdt_##idx##z_config, \
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||||
&wdt_nrfx_driver_api)
|
&wdt_nrfx_driver_api)
|
||||||
|
|
||||||
#ifdef CONFIG_NRFX_WDT0
|
#ifdef CONFIG_NRFX_WDT0
|
||||||
WDT_NRFX_WDT_DEVICE(0);
|
WDT_NRFX_WDT_DEVICE(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue