diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-09-19 19:15:08 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-09-19 19:15:08 +0000 |
commit | 03ba4131783cc9e872f8bb26a03f15bc11f27564 (patch) | |
tree | 88db8dba75ae06ba3bad08e42c5e52efc162535c /arch/ppc/kernel | |
parent | 257730f99381dd26e10b832fce4c94cae7ac1176 (diff) |
- Merge with Linux 2.1.121.
- Bugfixes.
Diffstat (limited to 'arch/ppc/kernel')
-rw-r--r-- | arch/ppc/kernel/mk_defs.c | 1 | ||||
-rw-r--r-- | arch/ppc/kernel/pmac_setup.c | 92 | ||||
-rw-r--r-- | arch/ppc/kernel/ppc_htab.c | 1 |
3 files changed, 1 insertions, 93 deletions
diff --git a/arch/ppc/kernel/mk_defs.c b/arch/ppc/kernel/mk_defs.c index c020da6ac..9b51a6cc1 100644 --- a/arch/ppc/kernel/mk_defs.c +++ b/arch/ppc/kernel/mk_defs.c @@ -11,7 +11,6 @@ #include <stddef.h> #include <linux/signal.h> #include <linux/sched.h> -#include <linux/head.h> #include <linux/kernel.h> #include <linux/errno.h> #include <linux/string.h> diff --git a/arch/ppc/kernel/pmac_setup.c b/arch/ppc/kernel/pmac_setup.c index 46a11dd78..7e44b404c 100644 --- a/arch/ppc/kernel/pmac_setup.c +++ b/arch/ppc/kernel/pmac_setup.c @@ -44,7 +44,6 @@ #include <asm/system.h> #include <asm/pgtable.h> #include <asm/io.h> -#include <asm/ide.h> #include <asm/pci-bridge.h> #include <asm/adb.h> #include <asm/cuda.h> @@ -273,94 +272,3 @@ __initfunc(void note_bootable_part(kdev_t dev, int part)) } } -#ifdef CONFIG_BLK_DEV_IDE -int pmac_ide_ports_known; -ide_ioreg_t pmac_ide_regbase[MAX_HWIFS]; -int pmac_ide_irq[MAX_HWIFS]; - -__initfunc(void pmac_ide_init_hwif_ports(ide_ioreg_t *p, ide_ioreg_t base, int *irq)) -{ - int i; - - *p = 0; - if (base == 0) - return; - if (base == mb_cd_base && !check_media_bay(MB_CD)) { - mb_cd_index = -1; - return; - } - for (i = 0; i < 8; ++i) - *p++ = base + i * 0x10; - *p = base + 0x160; - if (irq != NULL) { - *irq = 0; - for (i = 0; i < MAX_HWIFS; ++i) { - if (base == pmac_ide_regbase[i]) { - *irq = pmac_ide_irq[i]; - break; - } - } - } -} - -__initfunc(void pmac_ide_probe(void)) -{ - struct device_node *np; - int i; - struct device_node *atas; - struct device_node *p, **pp, *removables, **rp; - - pp = &atas; - rp = &removables; - p = find_devices("ATA"); - if (p == NULL) - p = find_devices("IDE"); - if (p == NULL) - p = find_type_devices("ide"); - if (p == NULL) - p = find_type_devices("ata"); - /* Move removable devices such as the media-bay CDROM - on the PB3400 to the end of the list. */ - for (; p != NULL; p = p->next) { - if (p->parent && p->parent->name - && strcasecmp(p->parent->name, "media-bay") == 0) { - *rp = p; - rp = &p->next; - } else { - *pp = p; - pp = &p->next; - } - } - *rp = NULL; - *pp = removables; - - for (i = 0, np = atas; i < MAX_HWIFS && np != NULL; np = np->next) { - if (np->n_addrs == 0) { - printk(KERN_WARNING "ide: no address for device %s\n", - np->full_name); - continue; - } - pmac_ide_regbase[i] = (unsigned long) - ioremap(np->addrs[0].address, 0x200); - if (np->n_intrs == 0) { - printk("ide: no intrs for device %s, using 13\n", - np->full_name); - pmac_ide_irq[i] = 13; - } else { - pmac_ide_irq[i] = np->intrs[0].line; - } - - if (np->parent && np->parent->name - && strcasecmp(np->parent->name, "media-bay") == 0) { - mb_cd_index = i; - mb_cd_base = pmac_ide_regbase[i]; - mb_cd_irq = pmac_ide_irq[i]; - } - - ++i; - } - - pmac_ide_ports_known = 1; -} -#endif /* CONFIG_BLK_DEV_IDE */ - diff --git a/arch/ppc/kernel/ppc_htab.c b/arch/ppc/kernel/ppc_htab.c index 074e15a9d..c1445d393 100644 --- a/arch/ppc/kernel/ppc_htab.c +++ b/arch/ppc/kernel/ppc_htab.c @@ -49,6 +49,7 @@ static struct file_operations ppc_htab_operations = { NULL, /* ioctl */ NULL, /* mmap */ NULL, /* no special open code */ + NULL, /* flush */ NULL, /* no special release code */ NULL /* can't fsync */ }; |