From: Russell King Date: Thu, 22 Sep 2011 10:30:50 +0000 (+0100) Subject: clk: provide prepare/unprepare functions X-Git-Tag: v3.2-rc1~146^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40d3e0f4942ec12c4521fe1b2a2b774164cd2c80;p=pandora-kernel.git clk: provide prepare/unprepare functions As discussed previously, there's the need on some platforms to run some parts of clk_enable() in contexts which can schedule. The solution which was agreed upon was to provide clk_prepare() and clk_unprepare() to contain this parts, while clk_enable() and clk_disable() perform the atomic part. This patch provides a common definition for clk_prepare() and clk_unprepare() in linux/clk.h, and provides an upgrade path for existing implementation and drivers: drivers can start using clk_prepare() and clk_unprepare() once this patch is merged without having to wait for platform support. Platforms can then start to provide these additional functions. Eventually, HAVE_CLK_PREPARE will be removed from the kernel, and everyone will have to provide these new APIs. Acked-by: Saravana Kannan Signed-off-by: Russell King --- Reading git-diff-tree failed