Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c39c30da authored by Yoichi Yuasa's avatar Yoichi Yuasa Committed by Ralf Baechle
Browse files

[MIPS] Fix return value of TXX9 SPI interrupt handler

parent a597a473
Loading
Loading
Loading
Loading
+6 −2
Original line number Original line Diff line number Diff line
@@ -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 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 */
	/* disable rx intr */
	tx4938_spiptr->cr0 &= ~TXx9_SPCR0_RBSIE;
	tx4938_spiptr->cr0 &= ~TXx9_SPCR0_RBSIE;
	wake_up(&txx9_spi_wait);
	wake_up(&txx9_spi_wait);

	return IRQ_HANDLED;
}
}

static struct irqaction txx9_spi_action = {
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)
void __init txx9_spi_irqinit(int irc_irq)