From a5daf74467cda8e09b8118292ab65e533c9ac366 Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Wed, 8 Apr 2020 10:04:14 -0500 Subject: [PATCH] drivers: hwinfo: 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 --- drivers/hwinfo/hwinfo_sam.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/hwinfo/hwinfo_sam.c b/drivers/hwinfo/hwinfo_sam.c index 2408d8a0a6a..b6c633c42fc 100644 --- a/drivers/hwinfo/hwinfo_sam.c +++ b/drivers/hwinfo/hwinfo_sam.c @@ -33,7 +33,7 @@ ssize_t z_impl_hwinfo_get_device_id(u8_t *buffer, size_t length) */ __ramfunc static void hwinfo_sam_read_device_id(void) { - Efc *efc = (Efc *)DT_FLASH_DEV_BASE_ADDRESS; + Efc *efc = (Efc *)DT_REG_ADDR(DT_INST(0, atmel_sam_flash_controller)); u8_t *flash = (u8_t *)CONFIG_FLASH_BASE_ADDRESS; int i; @@ -64,7 +64,7 @@ __ramfunc static void hwinfo_sam_read_device_id(void) static int hwinfo_sam_init(struct device *arg) { - Efc *efc = (Efc *)DT_FLASH_DEV_BASE_ADDRESS; + Efc *efc = (Efc *)DT_REG_ADDR(DT_INST(0, atmel_sam_flash_controller)); u32_t fmr; int key;