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:
Kumar Gala 2020-04-08 10:00:36 -05:00 committed by Kumar Gala
commit 9a28ff317f

View file

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