Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

cleanup after APUS removal

After the APUS removal, some code can be removed.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Cc: Karsten Keil <kkeil@suse.de>
Cc: James Bottomley <James.Bottomley@steeleye.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Adrian Bunk and committed by
Linus Torvalds
7b892806 b524b9ad

+10 -29
-2
arch/m68k/amiga/chipram.c
··· 32 32 if (!AMIGAHW_PRESENT(CHIP_RAM)) 33 33 return; 34 34 35 - #ifndef CONFIG_APUS_FAST_EXCEPT 36 35 /* 37 36 * Remove the first 4 pages where PPC exception handlers will be located 38 37 */ 39 38 amiga_chip_size -= 0x4000; 40 - #endif 41 39 chipram_res.end = amiga_chip_size-1; 42 40 request_resource(&iomem_resource, &chipram_res); 43 41
+3 -3
drivers/ide/ide-probe.c
··· 1049 1049 */ 1050 1050 if (!match || match->irq != hwif->irq) { 1051 1051 int sa = 0; 1052 - #if defined(__mc68000__) || defined(CONFIG_APUS) 1052 + #if defined(__mc68000__) 1053 1053 sa = IRQF_SHARED; 1054 1054 #endif /* __mc68000__ || CONFIG_APUS */ 1055 1055 ··· 1072 1072 hwif->rqsize = 65536; 1073 1073 } 1074 1074 1075 - #if !defined(__mc68000__) && !defined(CONFIG_APUS) 1075 + #if !defined(__mc68000__) 1076 1076 printk("%s at 0x%03lx-0x%03lx,0x%03lx on irq %d", hwif->name, 1077 1077 hwif->io_ports[IDE_DATA_OFFSET], 1078 1078 hwif->io_ports[IDE_DATA_OFFSET]+7, ··· 1080 1080 #else 1081 1081 printk("%s at 0x%08lx on irq %d", hwif->name, 1082 1082 hwif->io_ports[IDE_DATA_OFFSET], hwif->irq); 1083 - #endif /* __mc68000__ && CONFIG_APUS */ 1083 + #endif /* __mc68000__ */ 1084 1084 if (match) 1085 1085 printk(" (%sed with %s)", 1086 1086 hwif->sharing_irq ? "shar" : "serializ", match->name);
-8
drivers/isdn/hisax/avm_pci.c
··· 263 263 outl(idx, cs->hw.avm.cfg_reg + 4); 264 264 while (cnt < count) { 265 265 #ifdef __powerpc__ 266 - #ifdef CONFIG_APUS 267 - *ptr++ = in_le32((unsigned *)(cs->hw.avm.isac +_IO_BASE)); 268 - #else 269 266 *ptr++ = in_be32((unsigned *)(cs->hw.avm.isac +_IO_BASE)); 270 - #endif /* CONFIG_APUS */ 271 267 #else 272 268 *ptr++ = inl(cs->hw.avm.isac); 273 269 #endif /* __powerpc__ */ ··· 324 328 if (cs->subtyp == AVM_FRITZ_PCI) { 325 329 while (cnt<count) { 326 330 #ifdef __powerpc__ 327 - #ifdef CONFIG_APUS 328 - out_le32((unsigned *)(cs->hw.avm.isac +_IO_BASE), *ptr++); 329 - #else 330 331 out_be32((unsigned *)(cs->hw.avm.isac +_IO_BASE), *ptr++); 331 - #endif /* CONFIG_APUS */ 332 332 #else 333 333 outl(*ptr++, cs->hw.avm.isac); 334 334 #endif /* __powerpc__ */
+1 -2
drivers/scsi/a2091.c
··· 46 46 struct Scsi_Host *instance = cmd->device->host; 47 47 48 48 /* don't allow DMA if the physical address is bad */ 49 - if (addr & A2091_XFER_MASK || 50 - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) 49 + if (addr & A2091_XFER_MASK) 51 50 { 52 51 HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511) 53 52 & ~0x1ff;
+1 -2
drivers/scsi/a3000.c
··· 54 54 * end of a physical memory chunk, then allocate a bounce 55 55 * buffer 56 56 */ 57 - if (addr & A3000_XFER_MASK || 58 - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) 57 + if (addr & A3000_XFER_MASK) 59 58 { 60 59 HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511) 61 60 & ~0x1ff;
+1 -2
drivers/scsi/gvp11.c
··· 54 54 static int scsi_alloc_out_of_range = 0; 55 55 56 56 /* use bounce buffer if the physical address is bad */ 57 - if (addr & HDATA(cmd->device->host)->dma_xfer_mask || 58 - (!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual))) 57 + if (addr & HDATA(cmd->device->host)->dma_xfer_mask) 59 58 { 60 59 HDATA(cmd->device->host)->dma_bounce_len = (cmd->SCp.this_residual + 511) 61 60 & ~0x1ff;
+1 -1
drivers/video/console/fbcon.c
··· 84 84 #ifdef CONFIG_MAC 85 85 #include <asm/macints.h> 86 86 #endif 87 - #if defined(__mc68000__) || defined(CONFIG_APUS) 87 + #if defined(__mc68000__) 88 88 #include <asm/machdep.h> 89 89 #include <asm/setup.h> 90 90 #endif
+2 -2
drivers/video/console/fonts.c
··· 15 15 #include <linux/module.h> 16 16 #include <linux/types.h> 17 17 #include <linux/string.h> 18 - #if defined(__mc68000__) || defined(CONFIG_APUS) 18 + #if defined(__mc68000__) 19 19 #include <asm/setup.h> 20 20 #endif 21 21 #include <linux/font.h> ··· 120 120 for(i=0; i<num_fonts; i++) { 121 121 f = fonts[i]; 122 122 c = f->pref; 123 - #if defined(__mc68000__) || defined(CONFIG_APUS) 123 + #if defined(__mc68000__) 124 124 #ifdef CONFIG_FONT_PEARL_8x8 125 125 if (MACH_IS_AMIGA && f->idx == PEARL8x8_IDX) 126 126 c = 100;
-2
include/asm-m68k/pgtable.h
··· 107 107 /* 64-bit machines, beware! SRB. */ 108 108 #define SIZEOF_PTR_LOG2 2 109 109 110 - #define mm_end_of_chunk(addr, len) 0 111 - 112 110 extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode); 113 111 114 112 /*
+1 -1
sound/oss/dmasound/Kconfig
··· 14 14 15 15 config DMASOUND_PAULA 16 16 tristate "Amiga DMA sound support" 17 - depends on (AMIGA || APUS) && SOUND 17 + depends on AMIGA && SOUND 18 18 select DMASOUND 19 19 help 20 20 If you want to use the internal audio of your Amiga in Linux, answer
-4
sound/oss/dmasound/dmasound_paula.c
··· 91 91 * power LED are controlled by the same line. 92 92 */ 93 93 94 - #ifdef CONFIG_APUS 95 - #define mach_heartbeat ppc_md.heartbeat 96 - #endif 97 - 98 94 static void (*saved_heartbeat)(int) = NULL; 99 95 100 96 static inline void disable_heartbeat(void)