summaryrefslogtreecommitdiffstats
path: root/drivers/clk/imx/clk-gate-exclusive.c
diff options
context:
space:
mode:
authorGeliang Tang2016-01-08 16:51:46 +0100
committerStephen Boyd2016-01-29 21:59:50 +0100
commit5fd9c05c846db98319e75496612da24435cee208 (patch)
treeeea4db5c7285b5bfe3173b085c3880bdb4277100 /drivers/clk/imx/clk-gate-exclusive.c
parentclk: xgene: Remove return from void function (diff)
downloadkernel-qcow2-linux-5fd9c05c846db98319e75496612da24435cee208.tar.gz
kernel-qcow2-linux-5fd9c05c846db98319e75496612da24435cee208.tar.xz
kernel-qcow2-linux-5fd9c05c846db98319e75496612da24435cee208.zip
clk: move the common clock's to_clk_*(_hw) macros to clk-provider.h
to_clk_*(_hw) macros have been repeatedly defined in many places. This patch moves all the to_clk_*(_hw) definitions in the common clock framework to public header clk-provider.h, and drop the local definitions. Signed-off-by: Geliang Tang <geliangtang@163.com> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/imx/clk-gate-exclusive.c')
-rw-r--r--drivers/clk/imx/clk-gate-exclusive.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/imx/clk-gate-exclusive.c b/drivers/clk/imx/clk-gate-exclusive.c
index c12f5f2e04dc..3bd9dee618b2 100644
--- a/drivers/clk/imx/clk-gate-exclusive.c
+++ b/drivers/clk/imx/clk-gate-exclusive.c
@@ -31,7 +31,7 @@ struct clk_gate_exclusive {
static int clk_gate_exclusive_enable(struct clk_hw *hw)
{
- struct clk_gate *gate = container_of(hw, struct clk_gate, hw);
+ struct clk_gate *gate = to_clk_gate(hw);
struct clk_gate_exclusive *exgate = container_of(gate,
struct clk_gate_exclusive, gate);
u32 val = readl(gate->reg);