dm: spi: Do not assume first SPI bus
authorThomas Fitzsimmons <fitzsim@fitzsim.org>
Fri, 6 Sep 2019 11:51:19 +0000 (07:51 -0400)
committerSimon Glass <sjg@chromium.org>
Tue, 15 Oct 2019 14:40:02 +0000 (08:40 -0600)
commit640abba50763b215317468062a5e1b867ae57a76
treef5b9f67ca81130f0a047595a1f786fd763f5c345
parent7f3289bf6dee6e4e6c7d95d3ee16d3ab3d55de55
dm: spi: Do not assume first SPI bus

When CONFIG_OF_PRIOR_STAGE is enabled, this workaround was needed
before device_bind_common assigned request numbers sequentially in the
absence of aliases.

Signed-off-by: Thomas Fitzsimmons <fitzsim@fitzsim.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/spi/spi-uclass.c