diff options
author | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-24 13:25:48 +1000 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2019-06-29 10:41:50 +1000 |
commit | 985c7c495d13161dd73c066c6af66886c20ebb39 (patch) | |
tree | a13b60671bd0b05b15ac5bdd979a511ccd562266 | |
parent | bbd5bbc12afcfaf3949a432f71f8b20914477887 (diff) | |
download | pci-985c7c495d13161dd73c066c6af66886c20ebb39.tar.gz |
edac: i82875p: Use pci_dev_assign_resources()
Use the new pci_dev_assign_resources() to assign resources to the
newly added device rather than trying to assign the entire bus
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
-rw-r--r-- | drivers/edac/i82875p_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c index ceac925af38cc0..7eb2e9d9aa961e 100644 --- a/drivers/edac/i82875p_edac.c +++ b/drivers/edac/i82875p_edac.c @@ -291,7 +291,7 @@ static int i82875p_setup_overfl_dev(struct pci_dev *pdev, if (dev == NULL) return 1; - pci_bus_assign_resources(dev->bus); + pci_dev_assign_resources(dev); pci_bus_add_device(dev); } |