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>
This commit is contained in:
Axel Lin 2015-01-13 09:01:19 +08:00 committed by Jagannadha Sutradharudu Teki
parent a46988f11f
commit aa8306a90e

View File

@ -32,9 +32,6 @@ struct spi_slave *spi_setup_slave(unsigned int bus, unsigned int cs,
if (!ds) if (!ds)
return NULL; return NULL;
ds->slave.bus = bus;
ds->slave.cs = cs;
switch (bus) { switch (bus) {
case SPI0_BUS: case SPI0_BUS:
ds->regs = (struct davinci_spi_regs *)SPI0_BASE; ds->regs = (struct davinci_spi_regs *)SPI0_BASE;