summaryrefslogtreecommitdiffstats
path: root/drivers/clk/clk-multiplier.c
diff options
context:
space:
mode:
authorGeliang Tang <geliangtang@163.com>2016-01-08 16:51:46 +0100
committerStephen Boyd <sboyd@codeaurora.org>2016-01-29 21:59:50 +0100
commit5fd9c05c846db98319e75496612da24435cee208 (patch)
treeeea4db5c7285b5bfe3173b085c3880bdb4277100 /drivers/clk/clk-multiplier.c
parentclk: xgene: Remove return from void function (diff)
downloadlinux-5fd9c05c846db98319e75496612da24435cee208.tar.xz
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/clk-multiplier.c')
-rw-r--r--drivers/clk/clk-multiplier.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/clk/clk-multiplier.c b/drivers/clk/clk-multiplier.c
index fe7806506bf3..9e449c7b751c 100644
--- a/drivers/clk/clk-multiplier.c
+++ b/drivers/clk/clk-multiplier.c
@@ -14,8 +14,6 @@
#include <linux/of.h>
#include <linux/slab.h>
-#define to_clk_multiplier(_hw) container_of(_hw, struct clk_multiplier, hw)
-
static unsigned long __get_mult(struct clk_multiplier *mult,
unsigned long rate,
unsigned long parent_rate)