Skip to content

Commit

Permalink
clk: mmp: Remove clk.h include
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. The clkdev.h include isn't used either, so drop
it and add in slab.h to keep things compiling.

Cc: Chao Xie <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
  • Loading branch information
bebarino committed Jul 20, 2015
1 parent c0eb1df commit 528b769
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion drivers/clk/mmp/clk-apbc.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/delay.h>
Expand Down
1 change: 0 additions & 1 deletion drivers/clk/mmp/clk-apmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
*/

#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/err.h>
#include <linux/delay.h>
Expand Down
3 changes: 1 addition & 2 deletions drivers/clk/mmp/clk.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#include <linux/io.h>
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/clkdev.h>
#include <linux/slab.h>
#include <linux/of.h>
#include <linux/of_address.h>

Expand Down

0 comments on commit 528b769

Please sign in to comment.