From: Gerhard Sittig Date: Fri, 23 Aug 2013 16:01:44 +0000 (+0200) Subject: i2c: mpc: cleanup clock API use X-Git-Tag: v3.12-rc1~140^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3bfce2bc205ff4fdb4ec0b048513557cef459cf;p=pandora-kernel.git i2c: mpc: cleanup clock API use make the MPC I2C driver get, prepare and enable the gated clock item for register access during probe; disable and unprepare the clock upon remove(), put is done by the devm approach; hold a reference to the clock over the period of use clock lookup is non-fatal in this implementation as not all platforms may provide clock specs in their device tree, but failure to enable a clock when specified is considered fatal Signed-off-by: Gerhard Sittig Signed-off-by: Anatolij Gustschin Signed-off-by: Wolfram Sang --- Reading git-diff-tree failed