From 92cb76254fbc818c02dbc771f296844f4ccc468c Mon Sep 17 00:00:00 2001 From: Jason Cooper Date: Wed, 23 Jan 2013 19:58:21 +0000 Subject: [PATCH 1/2] ARM: kirkwood: nsa310: cleanup includes and unneeded code After removing the unneeded linux/i2c.h, linux/of.h was needed for of_machine_is_compatible(). i2c.h had included of.h. Signed-off-by: Jason Cooper --- arch/arm/mach-kirkwood/board-nsa310.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/arch/arm/mach-kirkwood/board-nsa310.c b/arch/arm/mach-kirkwood/board-nsa310.c index f58d2e1a4042..61c4b189d067 100644 --- a/arch/arm/mach-kirkwood/board-nsa310.c +++ b/arch/arm/mach-kirkwood/board-nsa310.c @@ -10,12 +10,9 @@ #include #include -#include #include - -#include -#include #include +#include #include "common.h" #include "mpp.h" @@ -79,14 +76,10 @@ static void __init nsa310_gpio_init(void) void __init nsa310_init(void) { - u32 dev, rev; - kirkwood_mpp_conf(nsa310_mpp_config); nsa310_gpio_init(); - kirkwood_pcie_id(&dev, &rev); - i2c_register_board_info(0, ARRAY_AND_SIZE(nsa310_i2c_info)); } From 63a069739a5826ab4007da88b7ec71eb9909271c Mon Sep 17 00:00:00 2001 From: Sebastian Hesselbarth Date: Tue, 29 Jan 2013 22:23:09 +0100 Subject: [PATCH 2/2] ARM: dove: cleanup includes This patch cleans unneccessary includes and reorders the remaining includes in common dove code. Signed-off-by: Sebastian Hesselbarth Signed-off-by: Jason Cooper --- arch/arm/mach-dove/common.c | 29 +++++++++-------------------- 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/arch/arm/mach-dove/common.c b/arch/arm/mach-dove/common.c index 89f4f993cd03..be887feea828 100644 --- a/arch/arm/mach-dove/common.c +++ b/arch/arm/mach-dove/common.c @@ -8,35 +8,24 @@ * warranty of any kind, whether express or implied. */ -#include -#include -#include -#include -#include #include #include -#include -#include +#include +#include #include #include -#include -#include -#include +#include +#include +#include #include +#include #include #include -#include -#include -#include #include -#include -#include -#include -#include -#include -#include +#include #include -#include +#include +#include #include "common.h" /*****************************************************************************