]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
dm: spi: Set up the spi_slave device pointer in child_pre_probe()
authorSimon Glass <sjg@chromium.org>
Sun, 25 Jan 2015 15:27:11 +0000 (08:27 -0700)
committerSimon Glass <sjg@chromium.org>
Fri, 30 Jan 2015 00:09:56 +0000 (17:09 -0700)
commit440714eeb8938e9710d1b2bba17c6c0af7c2cf69
tree970f831c02eaf88b70f479d2677b63e0e98daf52
parent83c7e434c9dd3ca81f8b763e23c1881b973bcf2f
dm: spi: Set up the spi_slave device pointer in child_pre_probe()

At present we use struct spi_slave as our device pointer in a lot of places
to avoid changing the old SPI API. At some point this will go away.

But for now, it is better if the SPI uclass sets up this pointer, rather
than relying on passing it into the device when it is probed. We can use the
new uclass child_pre_probe() method to do this.

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