]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: davinci: Remove duplicate code to set bus and cs for slave
authorAxel Lin <axel.lin@ingics.com>
Tue, 13 Jan 2015 01:01:19 +0000 (09:01 +0800)
committerJagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>
Sun, 29 Mar 2015 20:09:20 +0000 (01:39 +0530)
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>
drivers/spi/davinci_spi.c

index 0ec5b9d85920d4aca224fc91925925d5ca25703a..bf18362baaf81cdb9e37fdc71139f18712d07f33 100644 (file)
@@ -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;