hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/arch/powerpc/platforms/pseries/pci_dlpar.c
....@@ -1,3 +1,4 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * PCI Dynamic LPAR, PCI Hot Plug and PCI EEH recovery code
34 * for RPA-compliant PPC64 platform.
....@@ -6,23 +7,6 @@
67 *
78 * Updates, 2005, John Rose <johnrose@austin.ibm.com>
89 * Updates, 2005, Linas Vepstas <linas@austin.ibm.com>
9
- *
10
- * All rights reserved.
11
- *
12
- * This program is free software; you can redistribute it and/or modify
13
- * it under the terms of the GNU General Public License as published by
14
- * the Free Software Foundation; either version 2 of the License, or (at
15
- * your option) any later version.
16
- *
17
- * This program is distributed in the hope that it will be useful, but
18
- * WITHOUT ANY WARRANTY; without even the implied warranty of
19
- * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or
20
- * NON INFRINGEMENT. See the GNU General Public License for more
21
- * details.
22
- *
23
- * You should have received a copy of the GNU General Public License
24
- * along with this program; if not, write to the Free Software
25
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
2610 */
2711
2812 #include <linux/pci.h>
....@@ -50,10 +34,10 @@
5034 pci_devs_phb_init_dynamic(phb);
5135
5236 /* Create EEH devices for the PHB */
53
- eeh_dev_phb_init_dynamic(phb);
37
+ eeh_phb_pe_create(phb);
5438
5539 if (dn->child)
56
- eeh_add_device_tree_early(PCI_DN(dn));
40
+ pseries_eeh_init_edev_recursive(PCI_DN(dn));
5741
5842 pcibios_scan_phb(phb);
5943 pcibios_finish_adding_to_bus(phb->bus);