]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
parisc/PCI: Set type for LBA bus_num resource
authorBjorn Helgaas <bhelgaas@google.com>
Thu, 30 May 2013 17:45:39 +0000 (11:45 -0600)
committerHelge Deller <deller@gmx.de>
Sat, 1 Jun 2013 12:43:02 +0000 (14:43 +0200)
The non-PAT resource probing code failed to set the type of the LBA bus_num
resource (30aa80da43 "parisc/PCI: register busn_res for root buses" did
the corresponding thing for the PAT case).

This causes incorrect resource assignments and a non-working stifb
framebuffer on most parisc machines.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/lba_pci.c

index 2ef7103270bb7eb250ae15e16650c17a46a643d7..5d25038ef4b0e3bfcd87f8ec2ff86fc971417813 100644 (file)
@@ -1096,6 +1096,7 @@ lba_legacy_resources(struct parisc_device *pa_dev, struct lba_device *lba_dev)
        r->name = "LBA PCI Busses";
        r->start = lba_num & 0xff;
        r->end = (lba_num>>8) & 0xff;
+       r->flags = IORESOURCE_BUS;
 
        /* Set up local PCI Bus resources - we don't need them for
        ** Legacy boxes but it's nice to see in /proc/iomem.