Skip to content

Commit 10174b5

Browse files
wensbebarino
authored andcommitted
clk: mediatek: pll: Clean up included headers
Some included headers aren't actually used anywhere, while other headers with the declaration of functions and structures aren't directly included. Get rid of the unused ones, and add the ones that should be included directly. Also, copy the MHZ macro from clk-mtk.h, and drop clk-mtk.h from the included headers. Signed-off-by: Chen-Yu Tsai <wenst@chromium.org> Reviewed-by: Miles Chen <miles.chen@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20220208124034.414635-15-wenst@chromium.org Reviewed-by: Chun-Jie Chen <chun-jie.chen@mediatek.com> Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 6dd1990 commit 10174b5

1 file changed

Lines changed: 7 additions & 5 deletions

File tree

drivers/clk/mediatek/clk-pll.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,19 @@
44
* Author: James Liao <jamesjj.liao@mediatek.com>
55
*/
66

7-
#include <linux/of.h>
8-
#include <linux/of_address.h>
7+
#include <linux/clk-provider.h>
8+
#include <linux/container_of.h>
9+
#include <linux/delay.h>
10+
#include <linux/err.h>
911
#include <linux/io.h>
1012
#include <linux/module.h>
13+
#include <linux/of_address.h>
1114
#include <linux/slab.h>
12-
#include <linux/clkdev.h>
13-
#include <linux/delay.h>
1415

15-
#include "clk-mtk.h"
1616
#include "clk-pll.h"
1717

18+
#define MHZ (1000 * 1000)
19+
1820
#define REG_CON0 0
1921
#define REG_CON1 4
2022

0 commit comments

Comments
 (0)