From: Gerhard Sittig Date: Tue, 6 Aug 2013 20:43:41 +0000 (+0200) Subject: spi: mpc512x: cleanup clock API use X-Git-Tag: v3.12-rc1~192^2~21^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a81a5094a3287120cac148de4c9bdb2e53e5bfae;p=pandora-kernel.git spi: mpc512x: cleanup clock API use 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 (bitrate) determination to reduce redundancy as well as to not exceed the maximum text line length - stick with the PPC_CLOCK 'psc%d_mclk' name for clock lookup, only switch to a fixed string later after device tree based clock lookup will have become available Signed-off-by: Gerhard Sittig Signed-off-by: Mark Brown --- Reading git-diff-tree failed