diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-01-13 09:01:19 +0800 |
---|---|---|
committer | Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> | 2015-03-30 01:39:20 +0530 |
commit | aa8306a90e398e5667ccd03ef8512837116bcc51 (patch) | |
tree | 1a9f8e45ba1cc53b96ae368394f64a7e2a271775 /drivers | |
parent | a46988f11f7fad3043c6db1169f05d10f002d12c (diff) | |
download | u-boot-aa8306a90e398e5667ccd03ef8512837116bcc51.zip u-boot-aa8306a90e398e5667ccd03ef8512837116bcc51.tar.gz u-boot-aa8306a90e398e5667ccd03ef8512837116bcc51.tar.bz2 |
spi: davinci: Remove duplicate code to set bus and cs for slave
It's done in spi_alloc_slave().
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/spi/davinci_spi.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 0ec5b9d..bf18362 100644 --- a/drivers/spi/davinci_spi.c +++ b/drivers/spi/davinci_spi.c @@ -32,9 +32,6 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs, if (!ds) return NULL; - ds->slave.bus = bus; - ds->slave.cs = cs; - switch (bus) { case SPI0_BUS: ds->regs = (struct davinci_spi_regs *)SPI0_BASE; |