소스 검색

clk: mxs: Include clk.h in C files that use it

Clock provider drivers generally shouldn't include clk.h because
it's the consumer API. The clk.h include is being included in all
mxs files because it's part of mxs/clk.h even though nothing
actually requires it in that file. Move the clk.h include to the
C files that are actually using it and remove the clk.h include
from the header file. The clkdev.h include isn't used either, so
drop it too.

Acked-by: Shawn Guo <shawn.guo@linaro.org>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Stephen Boyd 10 년 전
부모
커밋
bb0bf35452
7개의 변경된 파일4개의 추가작업 그리고 8개의 파일을 삭제
  1. 0 1
      drivers/clk/mxs/clk-div.c
  2. 0 1
      drivers/clk/mxs/clk-frac.c
  3. 1 2
      drivers/clk/mxs/clk-imx23.c
  4. 1 1
      drivers/clk/mxs/clk-imx28.c
  5. 0 1
      drivers/clk/mxs/clk-pll.c
  6. 0 1
      drivers/clk/mxs/clk-ref.c
  7. 2 1
      drivers/clk/mxs/clk.h

+ 0 - 1
drivers/clk/mxs/clk-div.c

@@ -9,7 +9,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/slab.h>

+ 0 - 1
drivers/clk/mxs/clk-frac.c

@@ -9,7 +9,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/io.h>

+ 1 - 2
drivers/clk/mxs/clk-imx23.c

@@ -9,9 +9,8 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk/mxs.h>
-#include <linux/clkdev.h>
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/init.h>

+ 1 - 1
drivers/clk/mxs/clk-imx28.c

@@ -9,9 +9,9 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk/mxs.h>
 #include <linux/clkdev.h>
+#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/init.h>

+ 0 - 1
drivers/clk/mxs/clk-pll.c

@@ -9,7 +9,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/delay.h>
 #include <linux/err.h>

+ 0 - 1
drivers/clk/mxs/clk-ref.c

@@ -9,7 +9,6 @@
  * http://www.gnu.org/copyleft/gpl.html
  */
 
-#include <linux/clk.h>
 #include <linux/clk-provider.h>
 #include <linux/err.h>
 #include <linux/io.h>

+ 2 - 1
drivers/clk/mxs/clk.h

@@ -12,7 +12,8 @@
 #ifndef __MXS_CLK_H
 #define __MXS_CLK_H
 
-#include <linux/clk.h>
+struct clk;
+
 #include <linux/clk-provider.h>
 #include <linux/spinlock.h>