[PATCH] powerpc: iSeries fixes for build with no PCI
This reverts part of "ppc64 iSeries: allow build with no PCI"
(145d01e428
) which affected generic code
and applies a fix in the arch specific code.
Commit "partly merge iseries do_IRQ"
(5fee9b3b39eb55c7e3619a3b36ceeabffeb8f144) introduced iSeries_get_irq
which was only available if CONFIG_PCI is set.
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Paul Mackerras <paulus@samba.org>
This commit is contained in:

committed by
Paul Mackerras

parent
511061049b
commit
ee2cdecec4
@@ -534,7 +534,7 @@ static ssize_t write_kmem(struct file * file, const char __user * buf,
|
||||
return virtr + wrote;
|
||||
}
|
||||
|
||||
#if (defined(CONFIG_ISA) || !defined(__mc68000__)) && (!defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI))
|
||||
#if defined(CONFIG_ISA) || !defined(__mc68000__)
|
||||
static ssize_t read_port(struct file * file, char __user * buf,
|
||||
size_t count, loff_t *ppos)
|
||||
{
|
||||
@@ -795,7 +795,7 @@ static struct file_operations null_fops = {
|
||||
.write = write_null,
|
||||
};
|
||||
|
||||
#if (defined(CONFIG_ISA) || !defined(__mc68000__)) && (!defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI))
|
||||
#if defined(CONFIG_ISA) || !defined(__mc68000__)
|
||||
static struct file_operations port_fops = {
|
||||
.llseek = memory_lseek,
|
||||
.read = read_port,
|
||||
@@ -865,7 +865,7 @@ static int memory_open(struct inode * inode, struct file * filp)
|
||||
case 3:
|
||||
filp->f_op = &null_fops;
|
||||
break;
|
||||
#if (defined(CONFIG_ISA) || !defined(__mc68000__)) && (!defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI))
|
||||
#if defined(CONFIG_ISA) || !defined(__mc68000__)
|
||||
case 4:
|
||||
filp->f_op = &port_fops;
|
||||
break;
|
||||
@@ -912,7 +912,7 @@ static const struct {
|
||||
{1, "mem", S_IRUSR | S_IWUSR | S_IRGRP, &mem_fops},
|
||||
{2, "kmem", S_IRUSR | S_IWUSR | S_IRGRP, &kmem_fops},
|
||||
{3, "null", S_IRUGO | S_IWUGO, &null_fops},
|
||||
#if (defined(CONFIG_ISA) || !defined(__mc68000__)) && (!defined(CONFIG_PPC_ISERIES) || defined(CONFIG_PCI))
|
||||
#if defined(CONFIG_ISA) || !defined(__mc68000__)
|
||||
{4, "port", S_IRUSR | S_IWUSR | S_IRGRP, &port_fops},
|
||||
#endif
|
||||
{5, "zero", S_IRUGO | S_IWUGO, &zero_fops},
|
||||
|
Reference in New Issue
Block a user