powerpc/85xx: remove mostly pointless mpc85xx_qe_init()
authorRasmus Villemoes <linux@rasmusvillemoes.dk>
Wed, 23 Oct 2019 12:54:48 +0000 (14:54 +0200)
committerScott Wood <oss@buserror.net>
Sun, 17 Nov 2019 07:55:42 +0000 (01:55 -0600)
Since commit 302c059f2e7b (QE: use subsys_initcall to init qe),
mpc85xx_qe_init() has done nothing apart from possibly emitting a
pr_err(). As part of reducing the amount of QE-related code in
arch/powerpc/ (and eventually support QE on other architectures),
remove this low-hanging fruit.

Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Scott Wood <oss@buserror.net>
arch/powerpc/platforms/85xx/common.c
arch/powerpc/platforms/85xx/corenet_generic.c
arch/powerpc/platforms/85xx/mpc85xx.h
arch/powerpc/platforms/85xx/mpc85xx_mds.c
arch/powerpc/platforms/85xx/mpc85xx_rdb.c
arch/powerpc/platforms/85xx/twr_p102x.c

index fe0606439b5aecbebd3811e21b2129e69efd8a44..a554b6d87cf76a66b7e9668a3e7f1a723cd71a83 100644 (file)
@@ -86,29 +86,6 @@ void __init mpc85xx_cpm2_pic_init(void)
 #endif
 
 #ifdef CONFIG_QUICC_ENGINE
-void __init mpc85xx_qe_init(void)
-{
-       struct device_node *np;
-
-       np = of_find_compatible_node(NULL, NULL, "fsl,qe");
-       if (!np) {
-               np = of_find_node_by_name(NULL, "qe");
-               if (!np) {
-                       pr_err("%s: Could not find Quicc Engine node\n",
-                                       __func__);
-                       return;
-               }
-       }
-
-       if (!of_device_is_available(np)) {
-               of_node_put(np);
-               return;
-       }
-
-       of_node_put(np);
-
-}
-
 void __init mpc85xx_qe_par_io_init(void)
 {
        struct device_node *np;
index 7ee2c6628f64629c32e28ef95d414751d140afdc..a328a741b45728c7561b564765796a8c9bf50fef 100644 (file)
@@ -66,8 +66,6 @@ void __init corenet_gen_setup_arch(void)
        swiotlb_detect_4g();
 
        pr_info("%s board\n", ppc_md.name);
-
-       mpc85xx_qe_init();
 }
 
 static const struct of_device_id of_device_ids[] = {
index fa23f9b0592ca4c757523c73bc7ed585b4c39991..cb84c5c56c361ca9d10e8ce10fef62dc0449b9a9 100644 (file)
@@ -10,10 +10,8 @@ static inline void __init mpc85xx_cpm2_pic_init(void) {}
 #endif /* CONFIG_CPM2 */
 
 #ifdef CONFIG_QUICC_ENGINE
-extern void mpc85xx_qe_init(void);
 extern void mpc85xx_qe_par_io_init(void);
 #else
-static inline void __init mpc85xx_qe_init(void) {}
 static inline void __init mpc85xx_qe_par_io_init(void) {}
 #endif
 
index 5ca254256c475e66b56222c1d7ad1fff2b60fbb6..120633f99ea6da5ce3c009a4c55b30fe91fe99e5 100644 (file)
@@ -238,7 +238,6 @@ static void __init mpc85xx_mds_qe_init(void)
 {
        struct device_node *np;
 
-       mpc85xx_qe_init();
        mpc85xx_qe_par_io_init();
        mpc85xx_mds_reset_ucc_phys();
 
index d3c540ee558ff567055555496d3ae0504971678f..7f9a84f857664758c093a1adbc901522a31d7ebf 100644 (file)
@@ -89,7 +89,6 @@ static void __init mpc85xx_rdb_setup_arch(void)
        fsl_pci_assign_primary();
 
 #ifdef CONFIG_QUICC_ENGINE
-       mpc85xx_qe_init();
        mpc85xx_qe_par_io_init();
 #if defined(CONFIG_UCC_GETH) || defined(CONFIG_SERIAL_QE)
        if (machine_is(p1025_rdb)) {
index 720b0c0f03bafd7876544fb878150b8399039e26..6c3c0cdaee9ad2706c590d49262f1524a1bc7a85 100644 (file)
@@ -72,7 +72,6 @@ static void __init twr_p1025_setup_arch(void)
        fsl_pci_assign_primary();
 
 #ifdef CONFIG_QUICC_ENGINE
-       mpc85xx_qe_init();
        mpc85xx_qe_par_io_init();
 
 #if IS_ENABLED(CONFIG_UCC_GETH) || IS_ENABLED(CONFIG_SERIAL_QE)