From: Julia Lawall Date: Sun, 26 Aug 2012 16:00:00 +0000 (+0100) Subject: drivers/staging/iio/adc/spear_adc.c: use clk_prepare_enable and clk_disable_unprepare X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~75^2~795^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f5ed9c35bd2af6d9d171290d3dc45004f4f79bcf;p=pandora-kernel.git drivers/staging/iio/adc/spear_adc.c: use clk_prepare_enable and clk_disable_unprepare Clk_prepare_enable and clk_disable_unprepare combine clk_prepare and clk_enable, and clk_disable and clk_unprepare. They make the code more concise, and ensure that clk_unprepare is called when clk_enable fails. A simplified version of the semantic patch that introduces calls to these functions is as follows: (http://coccinelle.lip6.fr/) // @@ expression e; @@ - clk_prepare(e); - clk_enable(e); + clk_prepare_enable(e); @@ expression e; @@ - clk_disable(e); - clk_unprepare(e); + clk_disable_unprepare(e); // Signed-off-by: Julia Lawall Reviewed-by: Viresh Kumar Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed