drivers: flash: Convert drivers to new DT device macros

Convert flash drivers from:

    DEVICE_AND_API_INIT -> DEVICE_DT_INST_DEFINE
    DEVICE_DEFINE -> DEVICE_DT_INST_DEFINE

Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
Kumar Gala 2020-12-15 11:47:13 -06:00 committed by Anas Nashif
commit c17b6a2584
9 changed files with 16 additions and 17 deletions

View file

@ -297,6 +297,6 @@ static int flash_mcux_init(const struct device *dev)
return (rc == kStatus_Success) ? 0 : -EIO;
}
DEVICE_AND_API_INIT(flash_mcux, DT_INST_LABEL(0),
flash_mcux_init, &flash_data, NULL, POST_KERNEL,
DEVICE_DT_INST_DEFINE(0, flash_mcux_init, device_pm_control_nop,
&flash_data, NULL, POST_KERNEL,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &flash_mcux_api);