spi: Avoid checking console in SPL
authorSimon Glass <sjg@chromium.org>
Mon, 28 Feb 2022 19:08:28 +0000 (12:08 -0700)
committerTom Rini <trini@konsulko.com>
Wed, 6 Apr 2022 18:01:42 +0000 (14:01 -0400)
commit564e532eea0d605114f3afe310ca673b366e8c14
tree4ba7948600d47d63ff15b7dd71d82a159b61e152
parenta50b56133315b16a03597d6a66c106e2e1de5903
spi: Avoid checking console in SPL

When SPI flash is used in SPL there is no console, so ctrlc() cannot be
called. Add a condition to fix this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/mtd/spi/spi-nor-core.c