refactor: Move away from deprecated PM callback.

This commit is contained in:
Peter Johanson
2021-11-05 20:44:14 +00:00
committed by Pete Johanson
parent bf2fc68070
commit 4df83a9c0d
25 changed files with 41 additions and 48 deletions

View File

@@ -325,7 +325,7 @@ static int mcp23017_init(const struct device *dev) {
}; \
\
/* This has to init after SPI master */ \
DEVICE_DT_INST_DEFINE(inst, mcp23017_init, device_pm_control_nop, &mcp23017_##inst##_drvdata, \
DEVICE_DT_INST_DEFINE(inst, mcp23017_init, NULL, &mcp23017_##inst##_drvdata, \
&mcp23017_##inst##_config, POST_KERNEL, \
CONFIG_GPIO_MCP23017_INIT_PRIORITY, &api_table);