summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-uclass.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-11 10:46:22 -0700
committerSimon Glass <sjg@chromium.org>2014-11-22 10:16:47 +0100
commitff56bba2d6952176a826bddcd9baf84f61b419a3 (patch)
treeef05d1506ddb26b4d0f97d47525722fde585d30f /drivers/spi/spi-uclass.c
parente33dc221f45ca501319f5aebd1c88574238261be (diff)
downloadblackbird-obmc-uboot-ff56bba2d6952176a826bddcd9baf84f61b419a3.tar.gz
blackbird-obmc-uboot-ff56bba2d6952176a826bddcd9baf84f61b419a3.zip
dm: spi: Correct handling of SPI chip selects in sandbox
This code was not updated when the chip select handling was adjusted. Fix it to call the correct function. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Acked-by: Heiko Schocher <hs@denx.de>
Diffstat (limited to 'drivers/spi/spi-uclass.c')
-rw-r--r--drivers/spi/spi-uclass.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/drivers/spi/spi-uclass.c b/drivers/spi/spi-uclass.c
index 13c6b77d73..6bfc274956 100644
--- a/drivers/spi/spi-uclass.c
+++ b/drivers/spi/spi-uclass.c
@@ -115,16 +115,7 @@ int spi_chip_select(struct udevice *dev)
return slave ? slave->cs : -ENOENT;
}
-/**
- * spi_find_chip_select() - Find the slave attached to chip select
- *
- * @bus: SPI bus to search
- * @cs: Chip select to look for
- * @devp: Returns the slave device if found
- * @return 0 if found, -ENODEV on error
- */
-static int spi_find_chip_select(struct udevice *bus, int cs,
- struct udevice **devp)
+int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp)
{
struct udevice *dev;
OpenPOWER on IntegriCloud