diff options
author | Simon Glass <sjg@chromium.org> | 2014-11-11 10:46:23 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2014-11-22 10:16:48 +0100 |
commit | 6b18656aff0a1aec15528c47cc6108b44b559f7c (patch) | |
tree | 199d9045a773b0dcee4cfeeca0fe4dc3d79a735a /include | |
parent | ff56bba2d6952176a826bddcd9baf84f61b419a3 (diff) | |
download | u-boot-imx-6b18656aff0a1aec15528c47cc6108b44b559f7c.zip u-boot-imx-6b18656aff0a1aec15528c47cc6108b44b559f7c.tar.gz u-boot-imx-6b18656aff0a1aec15528c47cc6108b44b559f7c.tar.bz2 |
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 'include')
-rw-r--r-- | include/spi.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/spi.h b/include/spi.h index 5975cda..5b78271 100644 --- a/include/spi.h +++ b/include/spi.h @@ -544,20 +544,6 @@ int spi_chip_select(struct udevice *slave); int spi_find_chip_select(struct udevice *bus, int cs, struct udevice **devp); /** - * spi_bind_device() - bind a device to a bus's chip select - * - * This binds a new device to an given chip select (which must be unused). - * - * @bus: SPI bus to search - * @cs: Chip select to attach to - * @drv_name: Name of driver to attach to this chip select - * @dev_name: Name of the new device thus created - * @devp: Returns the newly bound device - */ -int spi_bind_device(struct udevice *bus, int cs, const char *drv_name, - const char *dev_name, struct udevice **devp); - -/** * spi_ofdata_to_platdata() - decode standard SPI platform data * * This decodes the speed and mode from a device tree node and puts it into |