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>
This commit is contained in:
Simon Glass
2018-10-01 11:55:19 -06:00
parent ef8a25006d
commit 66613f5dd2
2 changed files with 8 additions and 11 deletions

View File

@@ -36,7 +36,6 @@ enum state_terminal_raw {
};
struct sandbox_spi_info {
const char *spec;
struct udevice *emul;
};