drivers: memc: Convert drivers to new DT device macros
Convert memc drivers from: DEVICE_DEFINE -> DEVICE_DT_INST_DEFINE Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
b1e4913a8a
commit
1b40faef7a
2 changed files with 2 additions and 2 deletions
|
@ -59,5 +59,5 @@ static const struct memc_stm32_config config = {
|
||||||
.pinctrl_len = ARRAY_SIZE(pinctrl),
|
.pinctrl_len = ARRAY_SIZE(pinctrl),
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DEFINE(memc_stm32, DT_INST_LABEL(0), memc_stm32_init, NULL, NULL,
|
DEVICE_DT_INST_DEFINE(0, memc_stm32_init, device_pm_control_nop, NULL,
|
||||||
&config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);
|
&config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);
|
||||||
|
|
|
@ -129,5 +129,5 @@ static const struct memc_stm32_sdram_config config = {
|
||||||
.banks_len = ARRAY_SIZE(bank_config),
|
.banks_len = ARRAY_SIZE(bank_config),
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DEFINE(memc_stm32_sdram, DT_INST_LABEL(0), memc_stm32_sdram_init, NULL,
|
DEVICE_DT_INST_DEFINE(0, memc_stm32_sdram_init, device_pm_control_nop,
|
||||||
NULL, &config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);
|
NULL, &config, POST_KERNEL, CONFIG_MEMC_INIT_PRIORITY, NULL);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue