]> git.dujemihanovic.xyz Git - u-boot.git/commit
mtd: spi-nor: Guard SPI_STACKED_PARALLEL with DM_SPI check
authorTom Rini <trini@konsulko.com>
Thu, 31 Oct 2024 17:47:25 +0000 (11:47 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 31 Oct 2024 19:34:29 +0000 (13:34 -0600)
commite61ea9f2e5d2967826c2c6e3edba961064fbbaa1
treebe0a8f1d9580e17de1dbb559eb4bae77023f1b38
parent1d147b74f437fb0e85821e8271fe52bc5fd30194
mtd: spi-nor: Guard SPI_STACKED_PARALLEL with DM_SPI check

While we want to compile the SPI_STACKED_PARALLEL code everywhere we
can, it must first be guarded with an #if for DM_SPI as not all cases
where we have this code built, such as in SPL, will have the relevant
DM_SPI option enabled.

Fixes: 43423cdc5dc1 ("mtd: spi-nor: Always build SPI_STACKED_PARALLEL code")
Reviewed-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/mtd/spi/spi-nor-core.c