mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] SCSI on non-ISA systems
@ 2002-11-08 13:46 Geert Uytterhoeven
  2002-11-08 13:57 ` Russell King
  0 siblings, 1 reply; 9+ messages in thread
From: Geert Uytterhoeven @ 2002-11-08 13:46 UTC (permalink / raw)
  To: Linux Kernel Development; +Cc: Rusty Trivial Russell


Since 2.5.31, the compilation of kernel/dma.c is conditional on
CONFIG_GENERIC_ISA_DMA. However, drivers/scsi/hosts.c unconditionally calls
free_dma(), which breaks machines with SCSI that don't have ISA.

Please apply!

--- linux-2.5.46/drivers/scsi/hosts.c	Thu Oct 31 10:15:33 2002
+++ linux-m68k-2.5.46/drivers/scsi/hosts.c	Fri Nov  8 14:27:59 2002
@@ -27,6 +27,7 @@
  *  hosts currently present in the system.
  */
 
+#include <linux/config.h>
 #include <linux/module.h>
 #include <linux/blk.h>
 #include <linux/kernel.h>
@@ -98,8 +99,10 @@
 {
 	if (shost->irq)
 		free_irq(shost->irq, NULL);
+#ifdef CONFIG_GENERIC_ISA_DMA
 	if (shost->dma_channel != 0xff)
 		free_dma(shost->dma_channel);
+#endif
 	if (shost->io_port && shost->n_io_port)
 		release_region(shost->io_port, shost->n_io_port);
 }

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2002-11-09 14:44 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-08 13:46 [PATCH] SCSI on non-ISA systems Geert Uytterhoeven
2002-11-08 13:57 ` Russell King
2002-11-08 14:22   ` Geert Uytterhoeven
2002-11-08 14:42     ` Russell King
2002-11-08 16:20       ` Alan Cox
2002-11-09  0:50         ` Mike Anderson
2002-11-09  0:53         ` Christoph Hellwig
2002-11-09 13:13           ` Alan Cox
2002-11-09 14:51             ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®