Skip to content

Commit 7b89280

Browse files
AdrianBunkLinus Torvalds
authored andcommitted
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>
1 parent b524b9a commit 7b89280

11 files changed

Lines changed: 10 additions & 29 deletions

File tree

‎arch/m68k/amiga/chipram.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,10 @@ void __init amiga_chip_init(void)
3232
if (!AMIGAHW_PRESENT(CHIP_RAM))
3333
return;
3434

35-
#ifndef CONFIG_APUS_FAST_EXCEPT
3635
/*
3736
* Remove the first 4 pages where PPC exception handlers will be located
3837
*/
3938
amiga_chip_size -= 0x4000;
40-
#endif
4139
chipram_res.end = amiga_chip_size-1;
4240
request_resource(&iomem_resource, &chipram_res);
4341

‎drivers/ide/ide-probe.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,7 @@ static int init_irq (ide_hwif_t *hwif)
10491049
*/
10501050
if (!match || match->irq != hwif->irq) {
10511051
int sa = 0;
1052-
#if defined(__mc68000__) || defined(CONFIG_APUS)
1052+
#if defined(__mc68000__)
10531053
sa = IRQF_SHARED;
10541054
#endif /* __mc68000__ || CONFIG_APUS */
10551055

@@ -1072,15 +1072,15 @@ static int init_irq (ide_hwif_t *hwif)
10721072
hwif->rqsize = 65536;
10731073
}
10741074

1075-
#if !defined(__mc68000__) && !defined(CONFIG_APUS)
1075+
#if !defined(__mc68000__)
10761076
printk("%s at 0x%03lx-0x%03lx,0x%03lx on irq %d", hwif->name,
10771077
hwif->io_ports[IDE_DATA_OFFSET],
10781078
hwif->io_ports[IDE_DATA_OFFSET]+7,
10791079
hwif->io_ports[IDE_CONTROL_OFFSET], hwif->irq);
10801080
#else
10811081
printk("%s at 0x%08lx on irq %d", hwif->name,
10821082
hwif->io_ports[IDE_DATA_OFFSET], hwif->irq);
1083-
#endif /* __mc68000__ && CONFIG_APUS */
1083+
#endif /* __mc68000__ */
10841084
if (match)
10851085
printk(" (%sed with %s)",
10861086
hwif->sharing_irq ? "shar" : "serializ", match->name);

‎drivers/isdn/hisax/avm_pci.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,7 @@ hdlc_empty_fifo(struct BCState *bcs, int count)
263263
outl(idx, cs->hw.avm.cfg_reg + 4);
264264
while (cnt < count) {
265265
#ifdef __powerpc__
266-
#ifdef CONFIG_APUS
267-
*ptr++ = in_le32((unsigned *)(cs->hw.avm.isac +_IO_BASE));
268-
#else
269266
*ptr++ = in_be32((unsigned *)(cs->hw.avm.isac +_IO_BASE));
270-
#endif /* CONFIG_APUS */
271267
#else
272268
*ptr++ = inl(cs->hw.avm.isac);
273269
#endif /* __powerpc__ */
@@ -328,11 +324,7 @@ hdlc_fill_fifo(struct BCState *bcs)
328324
if (cs->subtyp == AVM_FRITZ_PCI) {
329325
while (cnt<count) {
330326
#ifdef __powerpc__
331-
#ifdef CONFIG_APUS
332-
out_le32((unsigned *)(cs->hw.avm.isac +_IO_BASE), *ptr++);
333-
#else
334327
out_be32((unsigned *)(cs->hw.avm.isac +_IO_BASE), *ptr++);
335-
#endif /* CONFIG_APUS */
336328
#else
337329
outl(*ptr++, cs->hw.avm.isac);
338330
#endif /* __powerpc__ */

‎drivers/scsi/a2091.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
4646
struct Scsi_Host *instance = cmd->device->host;
4747

4848
/* 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)
5150
{
5251
HDATA(instance)->dma_bounce_len = (cmd->SCp.this_residual + 511)
5352
& ~0x1ff;

‎drivers/scsi/a3000.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
5454
* end of a physical memory chunk, then allocate a bounce
5555
* buffer
5656
*/
57-
if (addr & A3000_XFER_MASK ||
58-
(!dir_in && mm_end_of_chunk (addr, cmd->SCp.this_residual)))
57+
if (addr & A3000_XFER_MASK)
5958
{
6059
HDATA(a3000_host)->dma_bounce_len = (cmd->SCp.this_residual + 511)
6160
& ~0x1ff;

‎drivers/scsi/gvp11.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,7 @@ static int dma_setup(struct scsi_cmnd *cmd, int dir_in)
5454
static int scsi_alloc_out_of_range = 0;
5555

5656
/* 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)
5958
{
6059
HDATA(cmd->device->host)->dma_bounce_len = (cmd->SCp.this_residual + 511)
6160
& ~0x1ff;

‎drivers/video/console/fbcon.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
#ifdef CONFIG_MAC
8585
#include <asm/macints.h>
8686
#endif
87-
#if defined(__mc68000__) || defined(CONFIG_APUS)
87+
#if defined(__mc68000__)
8888
#include <asm/machdep.h>
8989
#include <asm/setup.h>
9090
#endif

‎drivers/video/console/fonts.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include <linux/module.h>
1616
#include <linux/types.h>
1717
#include <linux/string.h>
18-
#if defined(__mc68000__) || defined(CONFIG_APUS)
18+
#if defined(__mc68000__)
1919
#include <asm/setup.h>
2020
#endif
2121
#include <linux/font.h>
@@ -120,7 +120,7 @@ const struct font_desc *get_default_font(int xres, int yres, u32 font_w,
120120
for(i=0; i<num_fonts; i++) {
121121
f = fonts[i];
122122
c = f->pref;
123-
#if defined(__mc68000__) || defined(CONFIG_APUS)
123+
#if defined(__mc68000__)
124124
#ifdef CONFIG_FONT_PEARL_8x8
125125
if (MACH_IS_AMIGA && f->idx == PEARL8x8_IDX)
126126
c = 100;

‎include/asm-m68k/pgtable.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,6 @@ extern void *empty_zero_page;
107107
/* 64-bit machines, beware! SRB. */
108108
#define SIZEOF_PTR_LOG2 2
109109

110-
#define mm_end_of_chunk(addr, len) 0
111-
112110
extern void kernel_set_cachemode(void *addr, unsigned long size, int cmode);
113111

114112
/*

‎sound/oss/dmasound/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ config DMASOUND_ATARI
1414

1515
config DMASOUND_PAULA
1616
tristate "Amiga DMA sound support"
17-
depends on (AMIGA || APUS) && SOUND
17+
depends on AMIGA && SOUND
1818
select DMASOUND
1919
help
2020
If you want to use the internal audio of your Amiga in Linux, answer

0 commit comments

Comments
 (0)