Skip to content

Commit

Permalink
[MIPS] Fix return value of TXX9 SPI interrupt handler
Browse files Browse the repository at this point in the history
Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Yoichi Yuasa authored and Ralf Baechle committed Oct 30, 2006
1 parent a597a47 commit c39c30d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,18 @@ void __init txx9_spi_init(unsigned long base, int (*cs_func)(int chipid, int on)

static DECLARE_WAIT_QUEUE_HEAD(txx9_spi_wait);

static void txx9_spi_interrupt(int irq, void *dev_id)
static irqreturn_t txx9_spi_interrupt(int irq, void *dev_id)
{
/* disable rx intr */
tx4938_spiptr->cr0 &= ~TXx9_SPCR0_RBSIE;
wake_up(&txx9_spi_wait);

return IRQ_HANDLED;
}

static struct irqaction txx9_spi_action = {
txx9_spi_interrupt, 0, 0, "spi", NULL, NULL,
.handler = txx9_spi_interrupt,
.name = "spi",
};

void __init txx9_spi_irqinit(int irc_irq)
Expand Down

0 comments on commit c39c30d

Please sign in to comment.