summaryrefslogtreecommitdiff
path: root/drivers/mtd/spi
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2014-11-11 17:46:23 (GMT)
committerSimon Glass <sjg@chromium.org>2014-11-22 09:16:48 (GMT)
commit6b18656aff0a1aec15528c47cc6108b44b559f7c (patch)
tree199d9045a773b0dcee4cfeeca0fe4dc3d79a735a /drivers/mtd/spi
parentff56bba2d6952176a826bddcd9baf84f61b419a3 (diff)
downloadu-boot-6b18656aff0a1aec15528c47cc6108b44b559f7c.tar.xz
dm: spi: Use device_bind_driver() instead of our own function
The SPI function does the same thing, so we may as well just use the new generic function. The 'cs' parameter was not actually used, so can be dropped. 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/mtd/spi')
-rw-r--r--drivers/mtd/spi/sandbox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mtd/spi/sandbox.c b/drivers/mtd/spi/sandbox.c
index fecf6d4..c6a5c4b 100644
--- a/drivers/mtd/spi/sandbox.c
+++ b/drivers/mtd/spi/sandbox.c
@@ -609,7 +609,7 @@ static int sandbox_sf_bind_bus_cs(struct sandbox_state *state, int busnum,
return -EEXIST;
}
- ret = spi_bind_device(bus, cs, "spi_flash_std", spec, &slave);
+ ret = device_bind_driver(bus, "spi_flash_std", spec, &slave);
if (ret)
return ret;