diff options
author | Oliver O'Halloran <oohall@gmail.com> | 2020-09-18 19:30:45 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-10-06 23:22:25 +1100 |
commit | 5d69e46a2104050c0a458c6bf6abba5f58f56e4c (patch) | |
tree | 8d10aa2e922cc383341298e821617d22777d2f4b | |
parent | 1f8fa0cd6a848ff072bffe0ee776554387128f60 (diff) | |
download | lwn-5d69e46a2104050c0a458c6bf6abba5f58f56e4c.tar.gz lwn-5d69e46a2104050c0a458c6bf6abba5f58f56e4c.zip |
powerpc/eeh: Delete eeh_ops->init
No longer used since the platforms perform their EEH initialisation before
calling eeh_init().
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200918093050.37344-4-oohall@gmail.com
-rw-r--r-- | arch/powerpc/include/asm/eeh.h | 1 | ||||
-rw-r--r-- | arch/powerpc/kernel/eeh.c | 8 |
2 files changed, 0 insertions, 9 deletions
diff --git a/arch/powerpc/include/asm/eeh.h b/arch/powerpc/include/asm/eeh.h index 765bcf63edea..85030c05e67e 100644 --- a/arch/powerpc/include/asm/eeh.h +++ b/arch/powerpc/include/asm/eeh.h @@ -216,7 +216,6 @@ enum { struct eeh_ops { char *name; - int (*init)(void); struct eeh_dev *(*probe)(struct pci_dev *pdev); int (*set_option)(struct eeh_pe *pe, int option); int (*get_state)(struct eeh_pe *pe, int *delay); diff --git a/arch/powerpc/kernel/eeh.c b/arch/powerpc/kernel/eeh.c index 28a0ea5d9faa..98faf139e676 100644 --- a/arch/powerpc/kernel/eeh.c +++ b/arch/powerpc/kernel/eeh.c @@ -965,14 +965,6 @@ int eeh_init(struct eeh_ops *ops) return ret; } - if (eeh_ops->init) - ret = eeh_ops->init(); - if (ret) { - pr_warn("%s: platform EEH init failed (%d)\n", - __func__, ret); - return ret; - } - /* Initialize PHB PEs */ list_for_each_entry_safe(hose, tmp, &hose_list, list_node) eeh_phb_pe_create(hose); |