summaryrefslogtreecommitdiff
path: root/drivers/clk/mediatek/clk-gate.h
diff options
context:
space:
mode:
authorStephen Boyd <sboyd@codeaurora.org>2015-06-20 01:00:46 +0300
committerStephen Boyd <sboyd@codeaurora.org>2015-07-20 20:53:09 +0300
commitc726639bbe23ddbfaa6ee1dd7d27175ee4488661 (patch)
treebe7411019bf3d1714cb2ef25a7c1b8b0478ec496 /drivers/clk/mediatek/clk-gate.h
parent059a1aa7eb1de2ccbc41a708e892c080d9e26c60 (diff)
downloadlinux-c726639bbe23ddbfaa6ee1dd7d27175ee4488661.tar.xz
clk: mediatek: Properly include clk.h
We don't need to include clk.h in header files, just forward declare struct clk here. This leads us to a few places where the include of clk.h was missing in C files. Add them. Cc: James Liao <jamesjj.liao@mediatek.com> Cc: Henry Chen <henryc.chen@mediatek.com> Cc: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Diffstat (limited to 'drivers/clk/mediatek/clk-gate.h')
-rw-r--r--drivers/clk/mediatek/clk-gate.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/clk/mediatek/clk-gate.h b/drivers/clk/mediatek/clk-gate.h
index 6b6780b1e9c5..11e25c992948 100644
--- a/drivers/clk/mediatek/clk-gate.h
+++ b/drivers/clk/mediatek/clk-gate.h
@@ -16,9 +16,10 @@
#define __DRV_CLK_GATE_H
#include <linux/regmap.h>
-#include <linux/clk.h>
#include <linux/clk-provider.h>
+struct clk;
+
struct mtk_clk_gate {
struct clk_hw hw;
struct regmap *regmap;