From aa8306a90e398e5667ccd03ef8512837116bcc51 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Tue, 13 Jan 2015 09:01:19 +0800 Subject: [PATCH] spi: davinci: Remove duplicate code to set bus and cs for slave It's done in spi_alloc_slave(). Signed-off-by: Axel Lin Reviewed-by: Jagannadha Sutradharudu Teki --- drivers/spi/davinci_spi.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/spi/davinci_spi.c b/drivers/spi/davinci_spi.c index 0ec5b9d859..bf18362baa 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; -- 2.39.5