From: LUTHER Sven <LUTHERSV@e-i.com>
To: "'linux-m68k'" <linux-m68k@lists.linux-m68k.org>
Cc: LUTHER Sven <LUTHERSV@exchange.e-i.com>
Subject: L68K: IDE shared interrupt patch 
Date: Thu, 20 Aug 1998 14:20:37 +0200
Sender: owner-linux-m68k@phil.uni-sb.de
Reply-To: LUTHER Sven <LUTHERSV@e-i.com>

Hello, ...

you will find here the patch for the ide stuff :

Friendly,

Sven 

--- drivers/block/ide.c.orig	Thu Aug 20 14:58:56 1998
+++ drivers/block/ide.c	Thu Aug 20 15:00:20 1998
@@ -1406,8 +1406,12 @@
 			 * Probably not a shared PCI interrupt,
 			 * so we can safely try to do something about it:
 			 */
-			(void)ide_ack_intr(hwif);
-			unexpected_intr(irq, hwgroup);
+			/* But don't forget that there are other
architectures
+			 * than i386, so better test the result of
+			 * ide_ack_intr(hwif).
+			 */
+			if (ide_ack_intr(hwif))
+				unexpected_intr(irq, hwgroup) ;
 		}
 		spin_unlock_irqrestore(&hwgroup->spinlock, flags);
 		return;
