forked from Minki/linux
powerpc/32: drop unused ISA_DMA_THRESHOLD
The ISA_DMA_THRESHOLD variable is set by several platforms but never referenced. Remove it. Signed-off-by: Mike Rapoport <rppt@linux.ibm.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20191125092033.20014-1-rppt@kernel.org
This commit is contained in:
parent
32377bd2cb
commit
b77afad84e
@ -151,10 +151,9 @@
|
||||
#define DMA2_EXT_REG 0x4D6
|
||||
|
||||
#ifndef __powerpc64__
|
||||
/* in arch/ppc/kernel/setup.c -- Cort */
|
||||
/* in arch/powerpc/kernel/setup_32.c -- Cort */
|
||||
extern unsigned int DMA_MODE_WRITE;
|
||||
extern unsigned int DMA_MODE_READ;
|
||||
extern unsigned long ISA_DMA_THRESHOLD;
|
||||
#else
|
||||
#define DMA_MODE_READ 0x44 /* I/O to memory, no autoinit, increment, single mode */
|
||||
#define DMA_MODE_WRITE 0x48 /* memory to I/O, no autoinit, increment, single mode */
|
||||
|
@ -58,7 +58,6 @@ EXPORT_SYMBOL_GPL(boot_cpuid_phys);
|
||||
int smp_hw_index[NR_CPUS];
|
||||
EXPORT_SYMBOL(smp_hw_index);
|
||||
|
||||
unsigned long ISA_DMA_THRESHOLD;
|
||||
unsigned int DMA_MODE_READ;
|
||||
unsigned int DMA_MODE_WRITE;
|
||||
|
||||
|
@ -43,9 +43,6 @@ static int __init warp_probe(void)
|
||||
if (!of_machine_is_compatible("pika,warp"))
|
||||
return 0;
|
||||
|
||||
/* For arch_dma_alloc */
|
||||
ISA_DMA_THRESHOLD = ~0L;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,6 @@ static int __init efika_probe(void)
|
||||
if (strcmp(model, "EFIKA5K2"))
|
||||
return 0;
|
||||
|
||||
ISA_DMA_THRESHOLD = ~0L;
|
||||
DMA_MODE_READ = 0x44;
|
||||
DMA_MODE_WRITE = 0x48;
|
||||
|
||||
|
@ -146,7 +146,6 @@ static int __init amigaone_probe(void)
|
||||
*/
|
||||
cur_cpu_spec->cpu_features &= ~CPU_FTR_NEED_COHERENT;
|
||||
|
||||
ISA_DMA_THRESHOLD = 0x00ffffff;
|
||||
DMA_MODE_READ = 0x44;
|
||||
DMA_MODE_WRITE = 0x48;
|
||||
|
||||
|
@ -569,7 +569,6 @@ static int __init chrp_probe(void)
|
||||
if (strcmp(dtype, "chrp"))
|
||||
return 0;
|
||||
|
||||
ISA_DMA_THRESHOLD = ~0L;
|
||||
DMA_MODE_READ = 0x44;
|
||||
DMA_MODE_WRITE = 0x48;
|
||||
|
||||
|
@ -586,7 +586,6 @@ static int __init pmac_probe(void)
|
||||
|
||||
#ifdef CONFIG_PPC32
|
||||
/* isa_io_base gets set in pmac_pci_init */
|
||||
ISA_DMA_THRESHOLD = ~0L;
|
||||
DMA_MODE_READ = 1;
|
||||
DMA_MODE_WRITE = 2;
|
||||
#endif /* CONFIG_PPC32 */
|
||||
|
Loading…
Reference in New Issue
Block a user