Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Fri, 8 Nov 2002 08:40:04 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Fri, 8 Nov 2002 08:40:04 -0500 Received: from mail2.sonytel.be ([195.0.45.172]:16600 "EHLO mail.sonytel.be") by vger.kernel.org with ESMTP id ; Fri, 8 Nov 2002 08:40:03 -0500 Date: Fri, 8 Nov 2002 14:46:40 +0100 (MET) From: Geert Uytterhoeven To: Linux Kernel Development cc: Rusty Trivial Russell Subject: [PATCH] SCSI on non-ISA systems Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1351 Lines: 45 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 #include #include #include @@ -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 - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/