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:
parent
a46988f11f
commit
aa8306a90e
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user