forked from luck/tmp_suning_uos_patched
MIPS: 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
c82084117f
commit
ead1505a9d
|
@ -32,22 +32,22 @@ static struct resource jazz_io_resources[] = {
|
|||
.start = 0x00,
|
||||
.end = 0x1f,
|
||||
.name = "dma1",
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
}, {
|
||||
.start = 0x40,
|
||||
.end = 0x5f,
|
||||
.name = "timer",
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
}, {
|
||||
.start = 0x80,
|
||||
.end = 0x8f,
|
||||
.name = "dma page reg",
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
}, {
|
||||
.start = 0xc0,
|
||||
.end = 0xdf,
|
||||
.name = "dma2",
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -47,31 +47,31 @@ static struct resource standard_io_resources[] = {
|
|||
.name = "dma1",
|
||||
.start = 0x00,
|
||||
.end = 0x1f,
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
},
|
||||
{
|
||||
.name = "timer",
|
||||
.start = 0x40,
|
||||
.end = 0x5f,
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
},
|
||||
{
|
||||
.name = "keyboard",
|
||||
.start = 0x60,
|
||||
.end = 0x6f,
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
},
|
||||
{
|
||||
.name = "dma page reg",
|
||||
.start = 0x80,
|
||||
.end = 0x8f,
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
},
|
||||
{
|
||||
.name = "dma2",
|
||||
.start = 0xc0,
|
||||
.end = 0xdf,
|
||||
.flags = IORESOURCE_BUSY
|
||||
.flags = IORESOURCE_IO | IORESOURCE_BUSY
|
||||
},
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user