Re: [PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-19 Thread Gerhard Sittig
On Thu, Jul 18, 2013 at 21:33 +0100, Russell King - ARM Linux wrote: > > On Thu, Jul 18, 2013 at 10:20:52PM +0200, Gerhard Sittig wrote: > > + /* enable clock for the I2C peripheral (non fatal) */ > > + clk = of_clk_get_by_name(node, "per"); > > + if (!IS_ERR(clk)) { > > + clk_prep

Re: [PATCH v2 18/24] i2c: mpc: OF clock lookup for MPC512x

2013-07-18 Thread Russell King - ARM Linux
On Thu, Jul 18, 2013 at 10:20:52PM +0200, Gerhard Sittig wrote: > + /* enable clock for the I2C peripheral (non fatal) */ > + clk = of_clk_get_by_name(node, "per"); > + if (!IS_ERR(clk)) { > + clk_prepare_enable(clk); > + clk_put(clk); > + } > + This kind of