OSDN Git Service

powerpc/eeh: Delete eeh_ops->init
authorOliver O'Halloran <oohall@gmail.com>
Fri, 18 Sep 2020 09:30:45 +0000 (19:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 6 Oct 2020 12:22:25 +0000 (23:22 +1100)
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
arch/powerpc/include/asm/eeh.h
arch/powerpc/kernel/eeh.c

index 765bcf6..85030c0 100644 (file)
@@ -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);
index 28a0ea5..98faf13 100644 (file)
@@ -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);