summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/kernel/eeh_dev.c
diff options
context:
space:
mode:
authorOliver O'Halloran <oohall@gmail.com>2020-07-25 10:12:18 +0200
committerMichael Ellerman <mpe@ellerman.id.au>2020-07-26 15:34:19 +0200
commit475028efc708880e16e61cc4cbbc00af784cb39b (patch)
tree3747f3d14e6044487b51fd7c59f231b919dbc76f /arch/powerpc/kernel/eeh_dev.c
parentpowerpc/watchpoint: Remove 512 byte boundary (diff)
downloadlinux-475028efc708880e16e61cc4cbbc00af784cb39b.tar.xz
linux-475028efc708880e16e61cc4cbbc00af784cb39b.zip
powerpc/eeh: Remove eeh_dev_phb_init_dynamic()
This function is a one line wrapper around eeh_phb_pe_create() and despite the name it doesn't create any eeh_dev structures. Replace it with direct calls to eeh_phb_pe_create() since that does what it says on the tin and removes a layer of indirection. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200725081231.39076-1-oohall@gmail.com
Diffstat (limited to 'arch/powerpc/kernel/eeh_dev.c')
-rw-r--r--arch/powerpc/kernel/eeh_dev.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/arch/powerpc/kernel/eeh_dev.c b/arch/powerpc/kernel/eeh_dev.c
index 7370185c7a05..8e159a12f10c 100644
--- a/arch/powerpc/kernel/eeh_dev.c
+++ b/arch/powerpc/kernel/eeh_dev.c
@@ -52,16 +52,3 @@ struct eeh_dev *eeh_dev_init(struct pci_dn *pdn)
return edev;
}
-
-/**
- * eeh_dev_phb_init_dynamic - Create EEH devices for devices included in PHB
- * @phb: PHB
- *
- * Scan the PHB OF node and its child association, then create the
- * EEH devices accordingly
- */
-void eeh_dev_phb_init_dynamic(struct pci_controller *phb)
-{
- /* EEH PE for PHB */
- eeh_phb_pe_create(phb);
-}