clk: clk-private: Add DEFINE_CLK macro
authorViresh Kumar <viresh.kumar@st.com>
Tue, 17 Apr 2012 11:15:36 +0000 (16:45 +0530)
committerMike Turquette <mturquette@linaro.org>
Tue, 24 Apr 2012 23:37:40 +0000 (16:37 -0700)
commit182f9e8cd5e451911a37f121f942409205ede0d6
tree606fe3e32f48fba82c5598bf82cc182a6b76e668
parentfbc42aab543307e9bfc1dfb029db929f3fafcacd
clk: clk-private: Add DEFINE_CLK macro

All macros used for creating different kind of clocks have similar code for
initializing struct clk. This patch removes those redundant lines and create
another macro DEFINE_CLK.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
include/linux/clk-private.h