mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-03-23 07:31:32 +00:00
spi: omap3: Remove unused variable irqstatus in omap3_spi_txrx
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>
This commit is contained in:
parent
4942ba2318
commit
3963919e5b
1 changed files with 0 additions and 2 deletions
|
@ -336,7 +336,6 @@ int omap3_spi_txrx(struct spi_slave *slave, unsigned int len,
|
||||||
struct omap3_spi_slave *ds = to_omap3_spi(slave);
|
struct omap3_spi_slave *ds = to_omap3_spi(slave);
|
||||||
ulong start;
|
ulong start;
|
||||||
int chconf = readl(&ds->regs->channel[ds->slave.cs].chconf);
|
int chconf = readl(&ds->regs->channel[ds->slave.cs].chconf);
|
||||||
int irqstatus = readl(&ds->regs->irqstatus);
|
|
||||||
int i=0;
|
int i=0;
|
||||||
|
|
||||||
/*Enable SPI channel*/
|
/*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*/
|
/*Shift in and out 1 byte at time*/
|
||||||
for (i=0; i < len; i++){
|
for (i=0; i < len; i++){
|
||||||
/* Write: wait for TX empty (TXS == 1)*/
|
/* Write: wait for TX empty (TXS == 1)*/
|
||||||
irqstatus |= (1<< (4*(ds->slave.bus)));
|
|
||||||
start = get_timer(0);
|
start = get_timer(0);
|
||||||
while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) &
|
while (!(readl(&ds->regs->channel[ds->slave.cs].chstat) &
|
||||||
OMAP3_MCSPI_CHSTAT_TXS)) {
|
OMAP3_MCSPI_CHSTAT_TXS)) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue