[PATCH v2 3/5] ARM: Alpine: smp support
Tsahee Zidenberg
tsahee at annapurnalabs.com
Sat Jan 31 12:11:13 PST 2015
On 31 January 2015 at 12:42, Russell King - ARM Linux
<linux at arm.linux.org.uk> wrote:
>
> On Sat, Jan 31, 2015 at 10:32:29AM +0200, Tsahee Zidenberg wrote:
> > +
> > + al_sysfabric = syscon_regmap_lookup_by_compatible("al,alpine-sysfabric-service");
> > +
> > + np = of_find_compatible_node(NULL, NULL, "al,alpine-cpu-resume");
>
> What if "np" is NULL?
Then of_iomap will return NULL, and wakeup_supported will be false.
(Thanks for your review! all other comments will be fixed)
>
> > + al_cpu_resume_regs = of_iomap(np, 0);
> > +
> > + wakeup_supported = (!IS_ERR(al_sysfabric)) && al_cpu_resume_regs;
More information about the linux-arm-kernel
mailing list