dm: spi: Use device_bind_driver() instead of our own function
authorSimon Glass <sjg@chromium.org>
Tue, 11 Nov 2014 17:46:23 +0000 (10:46 -0700)
committerSimon Glass <sjg@chromium.org>
Sat, 22 Nov 2014 09:16:48 +0000 (10:16 +0100)
commit6b18656aff0a1aec15528c47cc6108b44b559f7c
tree199d9045a773b0dcee4cfeeca0fe4dc3d79a735a
parentff56bba2d6952176a826bddcd9baf84f61b419a3
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>
drivers/mtd/spi/sandbox.c
drivers/spi/spi-uclass.c
include/spi.h