pci.c (ffb1e76f4f32d2b8ea4189df0484980370476395) pci.c (06dc660e6eb8817c4c379d2ca290ae0b3f77c69f)
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright IBM Corp. 2012
4 *
5 * Author(s):
6 * Jan Glauber <jang@linux.vnet.ibm.com>
7 *
8 * The System z PCI code is a rewrite from a prototype by

--- 547 unchanged lines hidden (view full) ---

556
557 zpci_free_iomap(zdev, zdev->bars[i].map_idx);
558 release_resource(zdev->bars[i].res);
559 kfree(zdev->bars[i].res);
560 }
561 zdev->has_resources = 0;
562}
563
1// SPDX-License-Identifier: GPL-2.0
2/*
3 * Copyright IBM Corp. 2012
4 *
5 * Author(s):
6 * Jan Glauber <jang@linux.vnet.ibm.com>
7 *
8 * The System z PCI code is a rewrite from a prototype by

--- 547 unchanged lines hidden (view full) ---

556
557 zpci_free_iomap(zdev, zdev->bars[i].map_idx);
558 release_resource(zdev->bars[i].res);
559 kfree(zdev->bars[i].res);
560 }
561 zdev->has_resources = 0;
562}
563
564int pcibios_add_device(struct pci_dev *pdev)
564int pcibios_device_add(struct pci_dev *pdev)
565{
566 struct zpci_dev *zdev = to_zpci(pdev);
567 struct resource *res;
568 int i;
569
570 /* The pdev has a reference to the zdev via its bus */
571 zpci_zdev_get(zdev);
572 if (pdev->is_physfn)

--- 420 unchanged lines hidden ---
565{
566 struct zpci_dev *zdev = to_zpci(pdev);
567 struct resource *res;
568 int i;
569
570 /* The pdev has a reference to the zdev via its bus */
571 zpci_zdev_get(zdev);
572 if (pdev->is_physfn)

--- 420 unchanged lines hidden ---