summaryrefslogtreecommitdiff
path: root/arch/s390/pci/pci_bus.c
diff options
context:
space:
mode:
authorPierre Morel <pmorel@linux.ibm.com>2020-03-23 12:29:37 +0100
committerVasily Gorbik <gor@linux.ibm.com>2020-04-28 13:49:46 +0200
commit65e450a9f9adabf3de1305a4c616f1313df402a3 (patch)
treea45482f8c1e4c012d390d7a009d75918a81355b1 /arch/s390/pci/pci_bus.c
parentf606b3ef47c9f874af605323099663a10f691b24 (diff)
s390/pci: Adding bus resource
The current PCI implementation do not provide a bus resource. This leads to a notice being print at boot. Let's do it more nicely and provide the bus resource. Signed-off-by: Pierre Morel <pmorel@linux.ibm.com> Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Diffstat (limited to 'arch/s390/pci/pci_bus.c')
-rw-r--r--arch/s390/pci/pci_bus.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/s390/pci/pci_bus.c b/arch/s390/pci/pci_bus.c
index e1565b8537de..b4fefc69c461 100644
--- a/arch/s390/pci/pci_bus.c
+++ b/arch/s390/pci/pci_bus.c
@@ -99,6 +99,11 @@ static struct zpci_bus *zpci_bus_alloc(int pchid)
kref_init(&zbus->kref);
INIT_LIST_HEAD(&zbus->resources);
+ zbus->bus_resource.start = 0;
+ zbus->bus_resource.end = ZPCI_BUS_NR;
+ zbus->bus_resource.flags = IORESOURCE_BUS;
+ pci_add_resource(&zbus->resources, &zbus->bus_resource);
+
return zbus;
}