diff options
author | Bjorn Helgaas <bhelgaas@google.com> | 2017-12-01 11:06:39 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-03-24 10:58:48 +0100 |
commit | aeea6c64c50675cbc16c47b6ff31279f685c8a68 (patch) | |
tree | 68425b921884d38ed48a80e73bd414852d571963 /arch/alpha | |
parent | 5af22f14b9485c0bb8ed0e22a666889300fe857e (diff) | |
download | linux-stable-aeea6c64c50675cbc16c47b6ff31279f685c8a68.tar.gz linux-stable-aeea6c64c50675cbc16c47b6ff31279f685c8a68.tar.bz2 linux-stable-aeea6c64c50675cbc16c47b6ff31279f685c8a68.zip |
vgacon: Set VGA struct resource types
[ Upstream commit c82084117f79bcae085e40da526253736a247120 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/alpha')
-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 6a61deed4a85..ab228ed45945 100644 --- a/arch/alpha/kernel/console.c +++ b/arch/alpha/kernel/console.c @@ -20,6 +20,7 @@ struct pci_controller *pci_vga_hose; static struct resource alpha_vga = { .name = "alpha-vga+", + .flags = IORESOURCE_IO, .start = 0x3C0, .end = 0x3DF }; |