powerpc/32: drop unused ISA_DMA_THRESHOLD
authorMike Rapoport <rppt@linux.ibm.com>
Mon, 25 Nov 2019 09:20:33 +0000 (11:20 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 1 Apr 2020 03:30:50 +0000 (14:30 +1100)
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
arch/powerpc/include/asm/dma.h
arch/powerpc/kernel/setup_32.c
arch/powerpc/platforms/44x/warp.c
arch/powerpc/platforms/52xx/efika.c
arch/powerpc/platforms/amigaone/setup.c
arch/powerpc/platforms/chrp/setup.c
arch/powerpc/platforms/powermac/setup.c

index 1b4f0254868f937d80067aa22ddb86356c6bddf7..6161a9596196f67101cfd8ca89acc605265954cd 100644 (file)
 #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 */
index 5b49b26eb154196ac65e0c86617396be208a4728..305ca89d856fee300d025133a1c7a9433ff9b69b 100644 (file)
@@ -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;
 
index 6620b64e4963200161a8e28d16a80523be086d92..665f18e37efb29be65cc7d84498c55dfcf0d634a 100644 (file)
@@ -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;
 }
 
index 61538869e88a277d29a94999cfbe944fe5c3a1ce..4514a6f7458a274b78a599f59b539c72c4456428 100644 (file)
@@ -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;
 
index ea5e45e326837ff3f56f1e91625ed53df60ed9d3..f5d0bf9997596ea11f2055785a196bb39fdd7236 100644 (file)
@@ -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;
 
index 8328cd5817b02baf71b62d0646d25933b110aff0..65a7e01a8f7d20037a4142906a5da52ce3936fb4 100644 (file)
@@ -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;
 
index c6d5333729ed77a1ed1aeacbaccd7c090afacef0..95fb4feb6cccd054e436d7c96e9d6e56256ae380 100644 (file)
@@ -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 */