summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi/sf_dataflash.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2024-09-29 19:49:48 -0600
committerTom Rini <trini@konsulko.com>2024-10-11 11:44:48 -0600
commit371dc068bbf50c6ed6146c04ec83b644bcc79249 (patch)
treeedad3a36155bccf380c703c2c81e2c0a9ab210a4 /drivers/mtd/spi/sf_dataflash.c
parentdac3ce976a9b06be5aadbd857c4b64a8c521c6d4 (diff)
drivers: Use CONFIG_XPL_BUILD instead of CONFIG_SPL_BUILD
Use the new symbol to refer to any 'SPL' build, including TPL and VPL Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mtd/spi/sf_dataflash.c')
-rw-r--r--drivers/mtd/spi/sf_dataflash.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sf_dataflash.c b/drivers/mtd/spi/sf_dataflash.c
index 6db24189c8e..438eb3698d5 100644
--- a/drivers/mtd/spi/sf_dataflash.c
+++ b/drivers/mtd/spi/sf_dataflash.c
@@ -438,7 +438,7 @@ static int add_dataflash(struct udevice *dev, char *name, int nr_pages,
spi_flash->size = nr_pages * pagesize;
spi_flash->erase_size = pagesize;
-#ifndef CONFIG_SPL_BUILD
+#ifndef CONFIG_XPL_BUILD
printf("SPI DataFlash: Detected %s with page size ", spi_flash->name);
print_size(spi_flash->page_size, ", erase size ");
print_size(spi_flash->erase_size, ", total ");