]> git.sur5r.net Git - u-boot/commitdiff
spi: omap3: Remove unused variable irqstatus in omap3_spi_txrx
authorChristophe Ricard <christophe.ricard@gmail.com>
Sun, 17 Jan 2016 10:56:47 +0000 (11:56 +0100)
committerJagan Teki <jteki@openedev.com>
Tue, 23 Feb 2016 10:44:46 +0000 (16:14 +0530)
Remove unused variable irqstatus in omap3_spi_txrx

Signed-off-by: Christophe Ricard <christophe-h.ricard@st.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jagan Teki <jteki@openedev.com>
drivers/spi/omap3_spi.c

index 85f9e85fd4b92ff6af8d48bf8bb1d452ac68256e..95cdfa36ef100e248da5412959e076ddd7c065e5 100644 (file)
@@ -336,7 +336,6 @@ int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
        struct omap3_spi_slave *ds = to_omap3_spi(slave);
        ulong start;
        int chconf = readl(&ds->regs->channel[ds->slave.cs].chconf);
-       int irqstatus = readl(&ds->regs->irqstatus);
        int i=0;
 
        /*Enable SPI channel*/
@@ -351,7 +350,6 @@ int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
        /*Shift in and out 1 byte at time*/
        for (i=0; i < len; i++){
                /* Write: wait for TX empty (TXS == 1)*/
-               irqstatus |= (1<< (4*(ds->slave.bus)));
                start = get_timer(0);
                while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) &
                         OMAP3_MCSPI_CHSTAT_TXS)) {