diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-12-01 18:06:39 +0100 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-12-19 06:07:43 +0100 |
commit | c82084117f79bcae085e40da526253736a247120 (patch) | |
tree | 8c70cffcf6cbe81de1381c675ed5b943f465463c /arch/alpha/kernel/console.c | |
parent | PCI: Use dev_info() rather than dev_err() for ROM validation (diff) | |
download | linux-c82084117f79bcae085e40da526253736a247120.tar.xz linux-c82084117f79bcae085e40da526253736a247120.zip |
vgacon: Set VGA struct resource types
Set the resource type when we reserve VGA-related I/O port resources.
The resource code doesn't actually look at the type, so it inserts
resources without a type in the tree correctly even without this change.
But if we ever print a resource without a type, it looks like this:
vga+ [??? 0x000003c0-0x000003df flags 0x0]
Setting the type means it will be printed correctly as:
vga+ [io 0x000003c0-0x000003df]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/alpha/kernel/console.c')
-rw-r--r-- | arch/alpha/kernel/console.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/alpha/kernel/console.c b/arch/alpha/kernel/console.c index 8e9a41966881..5476279329a6 100644 --- a/arch/alpha/kernel/console.c +++ b/arch/alpha/kernel/console.c @@ -21,6 +21,7 @@ struct pci_controller *pci_vga_hose; static struct resource alpha_vga = { .name = "alpha-vga+", + .flags = IORESOURCE_IO, .start = 0x3C0, .end = 0x3DF }; |