Commit 961292e6 authored by Bjorn Helgaas's avatar Bjorn Helgaas

powerpc: 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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent ead1505a
...@@ -134,7 +134,7 @@ int maple_set_rtc_time(struct rtc_time *tm) ...@@ -134,7 +134,7 @@ int maple_set_rtc_time(struct rtc_time *tm)
static struct resource rtc_iores = { static struct resource rtc_iores = {
.name = "rtc", .name = "rtc",
.flags = IORESOURCE_BUSY, .flags = IORESOURCE_IO | IORESOURCE_BUSY,
}; };
unsigned long __init maple_get_boot_time(void) unsigned long __init maple_get_boot_time(void)
......
...@@ -145,21 +145,21 @@ static struct resource pic1_iores = { ...@@ -145,21 +145,21 @@ static struct resource pic1_iores = {
.name = "8259 (master)", .name = "8259 (master)",
.start = 0x20, .start = 0x20,
.end = 0x21, .end = 0x21,
.flags = IORESOURCE_BUSY, .flags = IORESOURCE_IO | IORESOURCE_BUSY,
}; };
static struct resource pic2_iores = { static struct resource pic2_iores = {
.name = "8259 (slave)", .name = "8259 (slave)",
.start = 0xa0, .start = 0xa0,
.end = 0xa1, .end = 0xa1,
.flags = IORESOURCE_BUSY, .flags = IORESOURCE_IO | IORESOURCE_BUSY,
}; };
static struct resource pic_edgectrl_iores = { static struct resource pic_edgectrl_iores = {
.name = "8259 edge control", .name = "8259 edge control",
.start = 0x4d0, .start = 0x4d0,
.end = 0x4d1, .end = 0x4d1,
.flags = IORESOURCE_BUSY, .flags = IORESOURCE_IO | IORESOURCE_BUSY,
}; };
static int i8259_host_match(struct irq_domain *h, struct device_node *node, static int i8259_host_match(struct irq_domain *h, struct device_node *node,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment