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:
Pawel Dunaj 2019-12-16 15:55:10 +01:00 committed by Carles Cufí
parent 6d911b8f2c
commit e0ed8ebac4

View file

@ -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);