[PATCH V5 1/2] powerpc/85xx: Add QE common init function

Xiaobo Xie r63061 at freescale.com
Wed Nov 6 13:27:55 EST 2013


Hi Scott,

> -----Original Message-----
> From: Wood Scott-B07421
> Sent: Saturday, September 28, 2013 1:01 AM
> To: Xie Xiaobo-R63061
> Cc: linuxppc-dev at 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:
> > +#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;
> > +		}
> > +	}
> > +
> > +	qe_reset();
> > +	of_node_put(np);
> 
> You're missing the of_device_is_available() check:

I will add this check, thanks.

> 
> > -	np = of_find_compatible_node(NULL, NULL, "fsl,qe");
> > -	if (!np) {
> > -		np = of_find_node_by_name(NULL, "qe");
> 
> -Scott
> 



More information about the Linuxppc-dev mailing list