mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 01:04:08 +08:00
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>
This commit is contained in:
parent
961292e664
commit
6a9d42ed0d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user