.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Routines common to most mpc85xx-based boards. |
---|
3 | | - * |
---|
4 | | - * This is free software; you can redistribute it and/or modify |
---|
5 | | - * it under the terms of the GNU General Public License version 2 as |
---|
6 | | - * published by the Free Software Foundation. |
---|
7 | 4 | */ |
---|
8 | 5 | |
---|
9 | 6 | #include <linux/of_irq.h> |
---|
.. | .. |
---|
89 | 86 | #endif |
---|
90 | 87 | |
---|
91 | 88 | #ifdef CONFIG_QUICC_ENGINE |
---|
92 | | -void __init mpc85xx_qe_init(void) |
---|
93 | | -{ |
---|
94 | | - struct device_node *np; |
---|
95 | | - |
---|
96 | | - np = of_find_compatible_node(NULL, NULL, "fsl,qe"); |
---|
97 | | - if (!np) { |
---|
98 | | - np = of_find_node_by_name(NULL, "qe"); |
---|
99 | | - if (!np) { |
---|
100 | | - pr_err("%s: Could not find Quicc Engine node\n", |
---|
101 | | - __func__); |
---|
102 | | - return; |
---|
103 | | - } |
---|
104 | | - } |
---|
105 | | - |
---|
106 | | - if (!of_device_is_available(np)) { |
---|
107 | | - of_node_put(np); |
---|
108 | | - return; |
---|
109 | | - } |
---|
110 | | - |
---|
111 | | - of_node_put(np); |
---|
112 | | - |
---|
113 | | -} |
---|
114 | | - |
---|
115 | 89 | void __init mpc85xx_qe_par_io_init(void) |
---|
116 | 90 | { |
---|
117 | 91 | struct device_node *np; |
---|