linux-mips
[Top] [All Lists]

[PATCH][MIPS] fix return value of TXX9 SPI interrupt handler

To: Ralf Baechle <ralf@linux-mips.org>
Subject: [PATCH][MIPS] fix return value of TXX9 SPI interrupt handler
From: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>
Date: Sun, 29 Oct 2006 23:37:55 +0900
Cc: yoichi_yuasa@tripeaks.co.jp, linux-mips <linux-mips@linux-mips.org>
Organization: TriPeaks Corporation
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
Hi Ralf,

This patch has fixed return value of TXX9 SPI interrupt handler.

Yoichi

Signed-off-by: Yoichi Yuasa <yoichi_yuasa@tripeaks.co.jp>

diff -pruN -X mips/Documentation/dontdiff 
mips-orig/arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c 
mips/arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c
--- mips-orig/arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c      2006-10-29 
13:07:08.343277000 +0900
+++ mips/arch/mips/tx4938/toshiba_rbtx4938/spi_txx9.c   2006-10-29 
14:33:04.768167250 +0900
@@ -36,14 +36,18 @@ void __init txx9_spi_init(unsigned long 
 
 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)

<Prev in Thread] Current Thread [Next in Thread>
  • [PATCH][MIPS] fix return value of TXX9 SPI interrupt handler, Yoichi Yuasa <=