Skip to content

Commit

Permalink
clk: ux500: Remove clk.h and clkdev.h includes
Browse files Browse the repository at this point in the history
Clock provider drivers generally shouldn't include clk.h because
it's the consumer API. Remove the include here because this is a
provider driver. Also remove clkdev.h in files that aren't using
it.

Acked-by: Linus Walleij <[email protected]>
Acked-by: Ulf Hansson <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
bebarino committed Jul 20, 2015
1 parent 584ac4e commit a162ca9
Show file tree
Hide file tree
Showing 6 changed files with 2 additions and 8 deletions.
1 change: 0 additions & 1 deletion drivers/clk/ux500/abx500-clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <linux/platform_device.h>
#include <linux/mfd/abx500/ab8500.h>
#include <linux/mfd/abx500/ab8500-sysctrl.h>
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/mfd/dbx500-prcmu.h>
Expand Down
3 changes: 2 additions & 1 deletion drivers/clk/ux500/clk.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
#ifndef __UX500_CLK_H
#define __UX500_CLK_H

#include <linux/clk.h>
#include <linux/device.h>
#include <linux/types.h>

struct clk;

struct clk *clk_reg_prcc_pclk(const char *name,
const char *parent_name,
resource_size_t phy_base,
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/ux500/u8500_clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* License terms: GNU General Public License (GPL) version 2
*/

#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/mfd/dbx500-prcmu.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/clk/ux500/u8500_of_clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
*/

#include <linux/of.h>
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/platform_data/clk-ux500.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/ux500/u8540_clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
* License terms: GNU General Public License (GPL) version 2
*/

#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/mfd/dbx500-prcmu.h>
Expand Down
2 changes: 0 additions & 2 deletions drivers/clk/ux500/u9540_clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
* License terms: GNU General Public License (GPL) version 2
*/

#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/clk-provider.h>
#include <linux/mfd/dbx500-prcmu.h>
#include <linux/platform_data/clk-ux500.h>
Expand Down

0 comments on commit a162ca9

Please sign in to comment.