[PATCH V3] [POWERPC] Add common clock setting routine mpc52xx_psc_set_clkdiv()

Stephen Rothwell sfr at canb.auug.org.au
Thu Jan 10 18:13:16 EST 2008


Hi Grant,

On Wed, 09 Jan 2008 22:26:30 -0700 Grant Likely <grant.likely at secretlab.ca> wrote:
>
> +mpc52xx_map_common_devices(void)
>  {

> +	/* Clock Distribution Module, used by PSC clock setting function */
> +	np = of_find_matching_node(NULL, mpc52xx_cdm_ids);

What happens if we find no node?

> +	mpc52xx_cdm = of_iomap(np, 0);
> +	of_node_put(np);
>  }

-- 
Cheers,
Stephen Rothwell                    sfr at canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20080110/cc269584/attachment.pgp>


More information about the Linuxppc-dev mailing list