Skip to content

Commit afc449e

Browse files
galaknashif
authored andcommitted
flash: sam0: Fix build issue.
Fix stale DT define that causes driver not to build. Signed-off-by: Kumar Gala <[email protected]>
1 parent 7bfc98e commit afc449e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/flash/flash_sam0.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ LOG_MODULE_REGISTER(flash_sam0);
3030
* Number of lock regions. The number is fixed and the region size
3131
* grows with the flash size.
3232
*/
33-
#define LOCK_REGIONS DT_ATMEL_SAM0_NVMCTRL_0_LOCK_REGIONS
33+
#define LOCK_REGIONS DT_INST_0_ATMEL_SAM0_NVMCTRL_LOCK_REGIONS
3434
#define LOCK_REGION_SIZE (FLASH_SIZE / LOCK_REGIONS)
3535

3636
#if defined(NVMCTRL_BLOCK_SIZE)

0 commit comments

Comments
 (0)