Skip to content

Commit

Permalink
[MIPS] Remove duplicate ISA DMA code for 0 DMA channel case.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Nov 30, 2006
1 parent 0b7883f commit aa414df
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 34 deletions.
11 changes: 6 additions & 5 deletions arch/mips/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -266,8 +266,8 @@ config MIPS_MALTA
select BOOT_ELF32
select HAVE_STD_PC_SERIAL_PORT
select DMA_NONCOHERENT
select IRQ_CPU
select GENERIC_ISA_DMA
select IRQ_CPU
select HW_HAS_PCI
select I8259
select MIPS_BOARDS_GEN
Expand Down Expand Up @@ -534,7 +534,7 @@ config SGI_IP22
select HW_HAS_EISA
select IP22_CPU_SCACHE
select IRQ_CPU
select NO_ISA if ISA
select GENERIC_ISA_DMA_SUPPORT_BROKEN
select SWAP_IO_SPACE
select SYS_HAS_CPU_R4X00
select SYS_HAS_CPU_R5000
Expand Down Expand Up @@ -881,6 +881,9 @@ config MIPS_NILE4
config MIPS_DISABLE_OBSOLETE_IDE
bool

config GENERIC_ISA_DMA_SUPPORT_BROKEN
bool

#
# Endianess selection. Suffiently obscure so many users don't know what to
# answer,so we try hard to limit the available choices. Also the use of a
Expand Down Expand Up @@ -1852,13 +1855,11 @@ source "drivers/pci/Kconfig"
config ISA
bool

config NO_ISA
bool

config EISA
bool "EISA support"
depends on HW_HAS_EISA
select ISA
select GENERIC_ISA_DMA
---help---
The Extended Industry Standard Architecture (EISA) bus was
developed as an open alternative to the IBM MicroChannel bus.
Expand Down
1 change: 0 additions & 1 deletion arch/mips/kernel/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ obj-$(CONFIG_MIPS_APSP_KSPD) += kspd.o
obj-$(CONFIG_MIPS_VPE_LOADER) += vpe.o
obj-$(CONFIG_MIPS_VPE_APSP_API) += rtlx.o

obj-$(CONFIG_NO_ISA) += dma-no-isa.o
obj-$(CONFIG_I8259) += i8259.o
obj-$(CONFIG_IRQ_CPU) += irq_cpu.o
obj-$(CONFIG_IRQ_CPU_RM7K) += irq-rm7000.o
Expand Down
28 changes: 0 additions & 28 deletions arch/mips/kernel/dma-no-isa.c

This file was deleted.

2 changes: 2 additions & 0 deletions include/asm-mips/dma.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
*
*/

#ifndef GENERIC_ISA_DMA_SUPPORT_BROKEN
#define MAX_DMA_CHANNELS 8
#endif

/*
* The maximum address in KSEG0 that we can perform a DMA transfer to on this
Expand Down

0 comments on commit aa414df

Please sign in to comment.