clk: Add common __clk_get(), __clk_put() implementations
authorSylwester Nawrocki <s.nawrocki@samsung.com>
Sat, 24 Aug 2013 18:10:41 +0000 (20:10 +0200)
committerSylwester Nawrocki <s.nawrocki@samsung.com>
Wed, 4 Dec 2013 16:19:44 +0000 (17:19 +0100)
commitac2df527fb407b61f9c812a99035b62a75a77d6d
tree87b9b90703c654b5359749bd48eb87bb5dd0b118
parent3a3d2b0551d79ef476ef57424beeb8f68789fbcd
clk: Add common __clk_get(), __clk_put() implementations

This patch adds common __clk_get(), __clk_put() clkdev helpers that
replace their platform specific counterparts when the common clock
API is used.

The owner module pointer field is added to struct clk so a reference
to the clock supplier module can be taken by the clock consumers.

The owner module is assigned while the clock is being registered,
in functions _clk_register() and __clk_register().

Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/clkdev.h
arch/blackfin/include/asm/clkdev.h
arch/mips/include/asm/clkdev.h
arch/sh/include/asm/clkdev.h
drivers/clk/clk.c
include/linux/clk-private.h
include/linux/clkdev.h