Commit 66ba9c05 authored by Rob Herring's avatar Rob Herring Committed by Shawn Guo

ARM: imx: Drop unused includes

Several includes are not needed, so drop them.

of_platform.h (for now) implicitly includes platform_device.h and of.h, so
add explicit includes of those as needed.
Signed-off-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent 06c2afb8
...@@ -3,15 +3,11 @@ ...@@ -3,15 +3,11 @@
* Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru> * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
*/ */
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include "common.h" #include "common.h"
#include "hardware.h" #include "hardware.h"
#define MX1_AVIC_ADDR 0x00223000
static void __init imx1_init_early(void) static void __init imx1_init_early(void)
{ {
mxc_set_cpu_type(MXC_CPU_MX1); mxc_set_cpu_type(MXC_CPU_MX1);
......
...@@ -3,12 +3,7 @@ ...@@ -3,12 +3,7 @@
* Copyright 2012 Sascha Hauer, Pengutronix * Copyright 2012 Sascha Hauer, Pengutronix
*/ */
#include <linux/irq.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include "common.h" #include "common.h"
#include "hardware.h" #include "hardware.h"
......
...@@ -4,14 +4,8 @@ ...@@ -4,14 +4,8 @@
*/ */
#include <linux/init.h> #include <linux/init.h>
#include <linux/irq.h>
#include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/mm.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h> #include <asm/mach/map.h>
#include <asm/mach/time.h>
#include "common.h" #include "common.h"
#include "hardware.h" #include "hardware.h"
......
...@@ -5,15 +5,7 @@ ...@@ -5,15 +5,7 @@
* based on imx27-dt.c * based on imx27-dt.c
*/ */
#include <linux/irq.h>
#include <linux/irqdomain.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/clk-provider.h>
#include <linux/clocksource.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include <asm/hardware/cache-l2x0.h>
#include "common.h" #include "common.h"
#include "mx35.h" #include "mx35.h"
......
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* Copyright 2011 Linaro Ltd. * Copyright 2011 Linaro Ltd.
*/ */
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include "common.h" #include "common.h"
......
...@@ -5,12 +5,9 @@ ...@@ -5,12 +5,9 @@
*/ */
#include <linux/io.h> #include <linux/io.h>
#include <linux/irq.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include "common.h" #include "common.h"
#include "hardware.h" #include "hardware.h"
......
...@@ -4,15 +4,7 @@ ...@@ -4,15 +4,7 @@
* Copyright 2011 Linaro Ltd. * Copyright 2011 Linaro Ltd.
*/ */
#include <linux/clk.h>
#include <linux/clkdev.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/time.h>
#include "common.h" #include "common.h"
#include "hardware.h" #include "hardware.h"
......
...@@ -5,12 +5,10 @@ ...@@ -5,12 +5,10 @@
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/phy.h>
#include <linux/regmap.h> #include <linux/regmap.h>
#include <linux/mfd/syscon.h> #include <linux/mfd/syscon.h>
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h> #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include "common.h" #include "common.h"
#include "cpuidle.h" #include "cpuidle.h"
......
...@@ -3,12 +3,8 @@ ...@@ -3,12 +3,8 @@
* Copyright (C) 2015 Freescale Semiconductor, Inc. * Copyright (C) 2015 Freescale Semiconductor, Inc.
*/ */
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/mfd/syscon.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/phy.h>
#include <linux/regmap.h>
#include <asm/mach/arch.h> #include <asm/mach/arch.h>
#include <asm/mach/map.h>
#include "common.h" #include "common.h"
#include "cpuidle.h" #include "cpuidle.h"
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
#include <linux/irqchip.h> #include <linux/irqchip.h>
#include <linux/mfd/syscon.h> #include <linux/mfd/syscon.h>
#include <linux/mfd/syscon/imx7-iomuxc-gpr.h> #include <linux/mfd/syscon/imx7-iomuxc-gpr.h>
#include <linux/of_platform.h> #include <linux/platform_device.h>
#include <linux/phy.h> #include <linux/phy.h>
#include <linux/regmap.h> #include <linux/regmap.h>
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
#include <asm/fncpy.h> #include <asm/fncpy.h>
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_address.h> #include <linux/of_address.h>
#include <linux/of_platform.h> #include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/regmap.h> #include <linux/regmap.h>
#include <linux/suspend.h> #include <linux/suspend.h>
#include <asm/cacheflush.h> #include <asm/cacheflush.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment