diff options
author | Linas Vepstas <linas@linas.org> | 2005-11-04 03:54:29 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-01-10 07:29:33 +0300 |
commit | 9fb40eb883ad2d22ad6975b4323cb76e018fa280 (patch) | |
tree | c8f1f1a8e87b65cf69a01842eeb1efd52588d8e4 /arch/powerpc/platforms/pseries/eeh_driver.c | |
parent | f751f84164bec4f38037b221a194c54d96c73d06 (diff) | |
download | linux-9fb40eb883ad2d22ad6975b4323cb76e018fa280.tar.xz |
[PATCH] powerpc: Remove duplicate code
234-eeh-find-pe.patch
The find_device_pe() routine is duplicated in two files. Remove one of
the two copies, declare the other extern.
Signed-off-by: Linas Vepstas <linas@austin.ibm.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
(cherry picked from 48408e708282d4d0269136ff27ea5acbd9410b5a commit)
Diffstat (limited to 'arch/powerpc/platforms/pseries/eeh_driver.c')
-rw-r--r-- | arch/powerpc/platforms/pseries/eeh_driver.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/platforms/pseries/eeh_driver.c b/arch/powerpc/platforms/pseries/eeh_driver.c index f6cff065d89d..199a3ce54786 100644 --- a/arch/powerpc/platforms/pseries/eeh_driver.c +++ b/arch/powerpc/platforms/pseries/eeh_driver.c @@ -42,19 +42,6 @@ static inline const char * pcid_name (struct pci_dev *pdev) return ""; } -/** - * Return the "partitionable endpoint" (pe) under which this device lies - */ -static struct device_node * find_device_pe(struct device_node *dn) -{ - while ((dn->parent) && PCI_DN(dn->parent) && - (PCI_DN(dn->parent)->eeh_mode & EEH_MODE_SUPPORTED)) { - dn = dn->parent; - } - return dn; -} - - #ifdef DEBUG static void print_device_node_tree (struct pci_dn *pdn, int dent) { |