From: Sylwester Nawrocki Date: Sat, 24 Aug 2013 13:00:10 +0000 (+0200) Subject: clk: Implement clk_unregister X-Git-Tag: v3.14-rc1~109^2~27^2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fcb0ee6a3d331fb23dbb546500021f6e4cac5689;p=pandora-kernel.git clk: Implement clk_unregister clk_unregister() is currently not implemented and it is required when a clock provider module needs to be unloaded. Normally the clock supplier module is prevented to be unloaded by taking reference on the module in clk_get(). For cases when the clock supplier module deinitializes despite the consumers of its clocks holding a reference on the module, e.g. when the driver is unbound through "unbind" sysfs attribute, there are empty clock ops added. These ops are assigned temporarily to struct clk and used until all consumers release the clock, to avoid invoking callbacks from the module which just got removed. Signed-off-by: Jiada Wang Signed-off-by: Sylwester Nawrocki Signed-off-by: Kyungmin Park --- Reading git-diff-tree failed