瀏覽代碼

clk: sirf: Properly include clk.h

Clock provider drivers generally shouldn't include clk.h because
it's the consumer API. Move the include of clk.h into
clk-common.c because that's the only file that's really using
clk.h, even if it's included into the atlas6 and prima2 files.

Cc: Barry Song <Baohua.Song@csr.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Stephen Boyd 10 年之前
父節點
當前提交
fdb94059d8
共有 3 個文件被更改,包括 2 次插入2 次删除
  1. 0 1
      drivers/clk/sirf/clk-atlas6.c
  2. 2 0
      drivers/clk/sirf/clk-common.c
  3. 0 1
      drivers/clk/sirf/clk-prima2.c

+ 0 - 1
drivers/clk/sirf/clk-atlas6.c

@@ -10,7 +10,6 @@
 #include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
-#include <linux/clk.h>
 #include <linux/clkdev.h>
 #include <linux/clk-provider.h>
 #include <linux/of_address.h>

+ 2 - 0
drivers/clk/sirf/clk-common.c

@@ -7,6 +7,8 @@
  * Licensed under GPLv2 or later.
  */
 
+#include <linux/clk.h>
+
 #define KHZ     1000
 #define MHZ     (KHZ * KHZ)
 

+ 0 - 1
drivers/clk/sirf/clk-prima2.c

@@ -10,7 +10,6 @@
 #include <linux/module.h>
 #include <linux/bitops.h>
 #include <linux/io.h>
-#include <linux/clk.h>
 #include <linux/clkdev.h>
 #include <linux/clk-provider.h>
 #include <linux/of_address.h>