aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/irqchip
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2017-12-04 18:08:39 -0600
committerBjorn Helgaas <bhelgaas@google.com>2017-12-18 23:07:46 -0600
commit6a9d42ed0d4d28c449de36f561ad3969aac51c41 (patch)
tree3059179a356c41bc74446281ac11e9ff6a86a052 /drivers/irqchip
parentpowerpc: Set I/O port resource types correctly (diff)
downloadlinux-dev-6a9d42ed0d4d28c449de36f561ad3969aac51c41.tar.xz
linux-dev-6a9d42ed0d4d28c449de36f561ad3969aac51c41.zip
irqchip/i8259: Set I/O port resource types correctly
Set I/O port resource structs to have IORESOURCE_IO in their type field. Previously we marked these as merely IORESOURCE_BUSY without indicating the type. Setting the type doesn't fix any functional problem but makes %pR on the resource work better. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/irqchip')
-rw-r--r--drivers/irqchip/irq-i8259.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/irqchip/irq-i8259.c b/drivers/irqchip/irq-i8259.c
index 7aafbb091b67..b0d4aab1a58c 100644
--- a/drivers/irqchip/irq-i8259.c
+++ b/drivers/irqchip/irq-i8259.c
@@ -289,14 +289,14 @@ static struct resource pic1_io_resource = {
.name = "pic1",
.start = PIC_MASTER_CMD,
.end = PIC_MASTER_IMR,
- .flags = IORESOURCE_BUSY
+ .flags = IORESOURCE_IO | IORESOURCE_BUSY
};
static struct resource pic2_io_resource = {
.name = "pic2",
.start = PIC_SLAVE_CMD,
.end = PIC_SLAVE_IMR,
- .flags = IORESOURCE_BUSY
+ .flags = IORESOURCE_IO | IORESOURCE_BUSY
};
static int i8259A_irq_domain_map(struct irq_domain *d, unsigned int virq,