On 11/04/2011 07:08 PM, Tabi Timur-B04825 wrote: > On Fri, Nov 4, 2011 at 7:39 AM, Zhao Chenhui <chenhui.z...@freescale.com> > wrote: >> + /* clear to enable clock in low power mode */ >> + if (enable) >> + clrbits32(&pmc_regs->pmcdr, *pmcdr_mask); >> + else >> + setbits32(&pmc_regs->pmcdr, *pmcdr_mask); > > You need to use be32_to_cpup() when dereferencing a pointer to a > device tree property.
Or just use of_property_read_u32(). -Scott _______________________________________________ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org https://lists.ozlabs.org/listinfo/linuxppc-dev