clk: rockchip: Properly include clk.h
authorStephen Boyd <sboyd@codeaurora.org>
Fri, 19 Jun 2015 22:00:46 +0000 (15:00 -0700)
committerStephen Boyd <sboyd@codeaurora.org>
Mon, 20 Jul 2015 18:11:10 +0000 (11:11 -0700)
Clock provider drivers generally shouldn't include clk.h because
it's the consumer API. Only include clk.h if it's actually used.

Cc: Heiko Stuebner <heiko@sntech.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
drivers/clk/rockchip/clk-cpu.c
drivers/clk/rockchip/clk-mmc-phase.c
drivers/clk/rockchip/clk-pll.c
drivers/clk/rockchip/clk-rk3188.c
drivers/clk/rockchip/clk.h

index fb7721bd37e6a9595f70cbd8125fdab52fd2265e..330870a6d8bfa9163405398ff3de7e1eb0d8a864 100644 (file)
@@ -35,6 +35,7 @@
 #include <linux/of.h>
 #include <linux/slab.h>
 #include <linux/io.h>
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include "clk.h"
 
index e9f8df324e7ccecad7730998d8210c8ea11a2276..3244c6e391d789b7345e2c2b184c07a1b7f71db4 100644 (file)
@@ -14,6 +14,7 @@
  */
 
 #include <linux/slab.h>
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include "clk.h"
 
index 76027261f7ed999971f0b46ca10a4b4774d55bc3..1f88dd158b9394589b8395cbac56e16a0f02e967 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/slab.h>
 #include <linux/io.h>
 #include <linux/delay.h>
-#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/regmap.h>
 #include "clk.h"
index e4f9d472f1ffb52f7ffb5f5061b39d56d519fb89..91ea848c9d18d9c71f74ee32f6989e93e93e02c8 100644 (file)
@@ -13,6 +13,7 @@
  * GNU General Public License for more details.
  */
 
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/of.h>
 #include <linux/of_address.h>
index 6b092673048a2514399bd07cf156aefb081fb56a..1b16781b67c58fc8ac2590a23b4465e2fe0fdc9e 100644 (file)
@@ -24,8 +24,8 @@
 #define CLK_ROCKCHIP_CLK_H
 
 #include <linux/io.h>
-#include <linux/clk.h>
-#include <linux/clk-provider.h>
+
+struct clk;
 
 #define HIWORD_UPDATE(val, mask, shift) \
                ((val) << (shift) | (mask) << ((shift) + 16))