Skip to content

Commit

Permalink
ARM: 6787/1: SPEAr: Reorder #includes in .h & .c files.
Browse files Browse the repository at this point in the history
Order of inclusion of .h files must be: <linux/...>, <asm/...>, <plat/...>,
<mach/...>. This patch corrects this ordering whereever it is not followed.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
viresh kumar authored and Russell King committed Mar 9, 2011
1 parent 4b9502e commit 410782b
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <mach/misc_regs.h>
#include <plat/clock.h>
#include <mach/misc_regs.h>

/* root clks */
/* 32 KHz oscillator clock */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* warranty of any kind, whether express or implied.
*/

#include <asm/hardware/vic.h>
#include <mach/hardware.h>
#include <mach/spear.h>
#include <asm/hardware/vic.h>

.macro disable_fiq
.endm
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-spear3xx/include/mach/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#ifndef __MACH_GENERIC_H
#define __MACH_GENERIC_H

#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/amba/bus.h>
#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <plat/padmux.h>

/* spear3xx declarations */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear300.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
#include <linux/amba/pl061.h>
#include <linux/ptrace.h>
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <plat/shirq.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear310.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

#include <linux/ptrace.h>
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <plat/shirq.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear3xx/spear320.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@

#include <linux/ptrace.h>
#include <asm/irq.h>
#include <plat/shirq.h>
#include <mach/generic.h>
#include <mach/spear.h>
#include <plat/shirq.h>

/* pad multiplexing support */
/* muxing registers */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/clock.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

#include <linux/init.h>
#include <linux/kernel.h>
#include <mach/misc_regs.h>
#include <plat/clock.h>
#include <mach/misc_regs.h>

/* root clks */
/* 32 KHz oscillator clock */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/include/mach/entry-macro.S
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* warranty of any kind, whether express or implied.
*/

#include <asm/hardware/vic.h>
#include <mach/hardware.h>
#include <mach/spear.h>
#include <asm/hardware/vic.h>

.macro disable_fiq
.endm
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-spear6xx/include/mach/generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
#ifndef __MACH_GENERIC_H
#define __MACH_GENERIC_H

#include <asm/mach/time.h>
#include <asm/mach/map.h>
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/amba/bus.h>
#include <asm/mach/time.h>
#include <asm/mach/map.h>

/*
* Each GPT has 2 timer channels
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-spear6xx/spear6xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
#include <asm/hardware/vic.h>
#include <asm/irq.h>
#include <asm/mach/arch.h>
#include <mach/irqs.h>
#include <mach/generic.h>
#include <mach/irqs.h>
#include <mach/spear.h>

/* Add spear6xx machines common devices here */
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/plat-spear/include/plat/system.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
#ifndef __PLAT_SYSTEM_H
#define __PLAT_SYSTEM_H

#include <asm/hardware/sp810.h>
#include <linux/io.h>
#include <asm/hardware/sp810.h>
#include <mach/spear.h>

static inline void arch_idle(void)
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/plat-spear/time.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@
#include <linux/time.h>
#include <linux/irq.h>
#include <asm/mach/time.h>
#include <mach/irqs.h>
#include <mach/generic.h>
#include <mach/hardware.h>
#include <mach/irqs.h>
#include <mach/spear.h>
#include <mach/generic.h>

/*
* We would use TIMER0 and TIMER1 as clockevent and clocksource.
Expand Down

0 comments on commit 410782b

Please sign in to comment.