Hi Scott,
-Original Message-
From: Wood Scott-B07421
Sent: Saturday, September 28, 2013 1:01 AM
To: Xie Xiaobo-R63061
Cc: linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH V5 1/2] powerpc/85xx: Add QE common init function
On Thu, 2013-09-26 at 17:37 +0800, Xie Xiaobo wrote
On Thu, 2013-09-26 at 17:37 +0800, Xie Xiaobo wrote:
+#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);
+
Define a QE init function in common file, and avoid
the same codes being duplicated in board files.
Signed-off-by: Xie Xiaobo x@freescale.com
---
V5 - V4: add the board files modification, remove the qe_pic_init.
V4 - V3: Nochange
arch/powerpc/platforms/85xx/common.c | 33