[PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Gerhard Sittig
cleanup the MPC512x SoC's SPI master's use of the clock API - get, prepare, and enable the MCLK during probe; disable, unprepare and put the MCLK upon remove; hold a reference to the clock over the period of use - fetch MCLK rate (reference) once during probe and slightly reword BCLK

Re: [PATCH v2 01/24] spi: mpc512x: cleanup clock API use

2013-07-18 Thread Mark Brown
On Thu, Jul 18, 2013 at 07:00:32PM +0200, Gerhard Sittig wrote: + psc_num = master-bus_num; + snprintf(clk_name, sizeof(clk_name), psc%d_mclk, psc_num); + mps-clk_mclk = clk_get(dev, clk_name); + if (IS_ERR(mps-clk_mclk)) + goto free_irq; Should be using