Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+6 -2
+2 -1
drivers/clk/mediatek/clk-gate.h
··· 16 16 #define __DRV_CLK_GATE_H 17 17 18 18 #include <linux/regmap.h> 19 - #include <linux/clk.h> 20 19 #include <linux/clk-provider.h> 20 + 21 + struct clk; 21 22 22 23 struct mtk_clk_gate { 23 24 struct clk_hw hw;
+1
drivers/clk/mediatek/clk-mt8135.c
··· 12 12 * GNU General Public License for more details. 13 13 */ 14 14 15 + #include <linux/clk.h> 15 16 #include <linux/of.h> 16 17 #include <linux/of_address.h> 17 18 #include <linux/slab.h>
+1
drivers/clk/mediatek/clk-mt8173.c
··· 12 12 * GNU General Public License for more details. 13 13 */ 14 14 15 + #include <linux/clk.h> 15 16 #include <linux/of.h> 16 17 #include <linux/of_address.h> 17 18 #include <linux/slab.h>
+2 -1
drivers/clk/mediatek/clk-mtk.h
··· 17 17 18 18 #include <linux/regmap.h> 19 19 #include <linux/bitops.h> 20 - #include <linux/clk.h> 21 20 #include <linux/clk-provider.h> 21 + 22 + struct clk; 22 23 23 24 #define MAX_MUX_GATE_BIT 31 24 25 #define INVALID_MUX_GATE_BIT (MAX_MUX_GATE_BIT + 1)