Commit d35d1424 authored by Thadeu Lima de Souza Cascardo's avatar Thadeu Lima de Souza Cascardo Committed by Benjamin Herrenschmidt

powerpc/eeh/of: Checking for CONFIG_EEH is not needed

The functions used are already defined as empty inline functions for the
case where EEH is disabled.
Signed-off-by: default avatarThadeu Lima de Souza Cascardo <cascardo@linux.vnet.ibm.com>
Acked-by: default avatarGavin Shan <shangw@linux.vnet.ibm.com>
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
parent 7f966d39
...@@ -71,10 +71,8 @@ static int of_pci_phb_probe(struct platform_device *dev) ...@@ -71,10 +71,8 @@ static int of_pci_phb_probe(struct platform_device *dev)
eeh_dev_phb_init_dynamic(phb); eeh_dev_phb_init_dynamic(phb);
/* Register devices with EEH */ /* Register devices with EEH */
#ifdef CONFIG_EEH
if (dev->dev.of_node->child) if (dev->dev.of_node->child)
eeh_add_device_tree_early(dev->dev.of_node); eeh_add_device_tree_early(dev->dev.of_node);
#endif /* CONFIG_EEH */
/* Scan the bus */ /* Scan the bus */
pcibios_scan_phb(phb); pcibios_scan_phb(phb);
...@@ -88,9 +86,7 @@ static int of_pci_phb_probe(struct platform_device *dev) ...@@ -88,9 +86,7 @@ static int of_pci_phb_probe(struct platform_device *dev)
pcibios_claim_one_bus(phb->bus); pcibios_claim_one_bus(phb->bus);
/* Finish EEH setup */ /* Finish EEH setup */
#ifdef CONFIG_EEH
eeh_add_device_tree_late(phb->bus); eeh_add_device_tree_late(phb->bus);
#endif
/* Add probed PCI devices to the device model */ /* Add probed PCI devices to the device model */
pci_bus_add_devices(phb->bus); pci_bus_add_devices(phb->bus);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment