drivers: flash: atmel_sam: Replace DT_FLASH define
Replace DT_FLASH_DEV_BASE_ADDRESS with new DT_REG_ADDR/DT_INST macro as we phase out DT_FLASH define usage. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
ccd74755d5
commit
9a28ff317f
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ static const struct flash_driver_api flash_sam_api = {
|
|||
};
|
||||
|
||||
static const struct flash_sam_dev_cfg flash_sam_cfg = {
|
||||
.regs = (Efc *)DT_FLASH_DEV_BASE_ADDRESS,
|
||||
.regs = (Efc *)DT_REG_ADDR(DT_INST(0, atmel_sam_flash_controller)),
|
||||
};
|
||||
|
||||
static struct flash_sam_dev_data flash_sam_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue