hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/powerpc/kernel/of_platform.c
....@@ -1,13 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * Copyright (C) 2006 Benjamin Herrenschmidt, IBM Corp.
34 * <benh@kernel.crashing.org>
45 * and Arnd Bergmann, IBM Corp.
5
- *
6
- * This program is free software; you can redistribute it and/or
7
- * modify it under the terms of the GNU General Public License
8
- * as published by the Free Software Foundation; either version
9
- * 2 of the License, or (at your option) any later version.
10
- *
116 */
127
138 #undef DEBUG
....@@ -67,12 +62,8 @@
6762 /* Init pci_dn data structures */
6863 pci_devs_phb_init_dynamic(phb);
6964
70
- /* Create EEH devices for the PHB */
71
- eeh_dev_phb_init_dynamic(phb);
72
-
73
- /* Register devices with EEH */
74
- if (dev->dev.of_node->child)
75
- eeh_add_device_tree_early(PCI_DN(dev->dev.of_node));
65
+ /* Create EEH PE for the PHB */
66
+ eeh_phb_pe_create(phb);
7667
7768 /* Scan the bus */
7869 pcibios_scan_phb(phb);
....@@ -85,14 +76,8 @@
8576 */
8677 pcibios_claim_one_bus(phb->bus);
8778
88
- /* Finish EEH setup */
89
- eeh_add_device_tree_late(phb->bus);
90
-
9179 /* Add probed PCI devices to the device model */
9280 pci_bus_add_devices(phb->bus);
93
-
94
- /* sysfs files should only be added after devices are added */
95
- eeh_add_sysfs_files(phb->bus);
9681
9782 return 0;
9883 }