dm: spi: Clean up detection of sandbox SPI emulator
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 17:55:19 +0000 (11:55 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commit66613f5dd25c4372b3f5ecb2f0c1d08b7f77b3a8
treeb84db5dbc8d913df08c7ebef2b9b022016a29218
parentef8a25006df35cafbd47a574681901d9b8f23000
dm: spi: Clean up detection of sandbox SPI emulator

Now that we don't have to deal with the command-line flag we can simplify
the code for detecting the emulator. Remove the lookup based on the SPI
specification, relying just on the device tree to locate the emulator.

Signed-off-by: Simon Glass <sjg@chromium.org>
arch/sandbox/include/asm/state.h
drivers/mtd/spi/sandbox.c