aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/pseries/eeh.c
diff options
context:
space:
mode:
authorGavin Shan <shangw@linux.vnet.ibm.com>2012-09-07 18:44:23 -0400
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2012-09-09 19:59:00 -0400
commit3ab96a02e829131c19db8ed99239289acdb4e3dc (patch)
tree62297fb6878c446de16ed601c00e679831d4c94b /arch/powerpc/platforms/pseries/eeh.c
parentf8f7d63fd96ead101415a1302035137a866f8998 (diff)
powerpc/eeh: Cleanup on EEH PCI address cache
The patch does cleanup on EEH PCI address cache based on the fact EEH core is the only user of the component. * Cleanup on function names so that they all have prefix "eeh" and looks more short. * Function printk() has been replaced with pr_debug() or pr_warning() accordingly. Signed-off-by: Gavin Shan <shangw@linux.vnet.ibm.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh.c')
-rw-r--r--arch/powerpc/platforms/pseries/eeh.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh.c b/arch/powerpc/platforms/pseries/eeh.c
index 9e618424b187..18c168b752da 100644
--- a/arch/powerpc/platforms/pseries/eeh.c
+++ b/arch/powerpc/platforms/pseries/eeh.c
@@ -411,7 +411,7 @@ unsigned long eeh_check_failure(const volatile void __iomem *token, unsigned lon
411 411
412 /* Finding the phys addr + pci device; this is pretty quick. */ 412 /* Finding the phys addr + pci device; this is pretty quick. */
413 addr = eeh_token_to_phys((unsigned long __force) token); 413 addr = eeh_token_to_phys((unsigned long __force) token);
414 edev = pci_addr_cache_get_device(addr); 414 edev = eeh_addr_cache_get_dev(addr);
415 if (!edev) { 415 if (!edev) {
416 eeh_stats.no_device++; 416 eeh_stats.no_device++;
417 return val; 417 return val;
@@ -787,7 +787,7 @@ static void eeh_add_device_late(struct pci_dev *dev)
787 edev->pdev = dev; 787 edev->pdev = dev;
788 dev->dev.archdata.edev = edev; 788 dev->dev.archdata.edev = edev;
789 789
790 pci_addr_cache_insert_device(dev); 790 eeh_addr_cache_insert_dev(dev);
791 eeh_sysfs_add_device(dev); 791 eeh_sysfs_add_device(dev);
792} 792}
793 793
@@ -844,7 +844,7 @@ static void eeh_remove_device(struct pci_dev *dev)
844 pci_dev_put(dev); 844 pci_dev_put(dev);
845 845
846 eeh_rmv_from_parent_pe(edev); 846 eeh_rmv_from_parent_pe(edev);
847 pci_addr_cache_remove_device(dev); 847 eeh_addr_cache_rmv_dev(dev);
848 eeh_sysfs_remove_device(dev); 848 eeh_sysfs_remove_device(dev);
849} 849}
850 850