Skip to content

Commit c164620

Browse files
committed
ARM: spear: remove include/mach/ subdirectory
Two of the remaining four headers are never used, the other two are only used inside of the platform code. Move them next to the files that include them and remove the Makefile trick that adds the include path. Acked-by: Viresh Kumar <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent ca31807 commit c164620

File tree

15 files changed

+14
-95
lines changed

15 files changed

+14
-95
lines changed

arch/arm/mach-spear/Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
# SPEAr Platform specific Makefile
44
#
55

6-
ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include
7-
86
# Common support
97
obj-y := restart.o time.o
108

arch/arm/mach-spear/include/mach/irqs.h

Lines changed: 0 additions & 35 deletions
This file was deleted.

arch/arm/mach-spear/include/mach/uncompress.h

Lines changed: 0 additions & 42 deletions
This file was deleted.

arch/arm/mach-spear/include/mach/misc_regs.h renamed to arch/arm/mach-spear/misc_regs.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
/*
2-
* arch/arm/mach-spear3xx/include/mach/misc_regs.h
3-
*
42
* Miscellaneous registers definitions for SPEAr3xx machine family
53
*
64
* Copyright (C) 2009 ST Microelectronics
@@ -14,7 +12,7 @@
1412
#ifndef __MACH_MISC_REGS_H
1513
#define __MACH_MISC_REGS_H
1614

17-
#include <mach/spear.h>
15+
#include "spear.h"
1816

1917
#define MISC_BASE (VA_SPEAR_ICM3_MISC_REG_BASE)
2018
#define DMA_CHN_CFG (MISC_BASE + 0x0A0)

arch/arm/mach-spear/pl080.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
#include <linux/err.h>
1818
#include <linux/io.h>
1919
#include <linux/spinlock_types.h>
20-
#include <mach/spear.h>
21-
#include <mach/misc_regs.h>
20+
#include "spear.h"
21+
#include "misc_regs.h"
2222

2323
static spinlock_t lock = __SPIN_LOCK_UNLOCKED(x);
2424

arch/arm/mach-spear/platsmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/smp.h>
1515
#include <asm/cacheflush.h>
1616
#include <asm/smp_scu.h>
17-
#include <mach/spear.h>
17+
#include "spear.h"
1818
#include "generic.h"
1919

2020
/* XXX spear_pen_release is cargo culted code - DO NOT COPY XXX */

arch/arm/mach-spear/restart.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#include <linux/amba/sp810.h>
1515
#include <linux/reboot.h>
1616
#include <asm/system_misc.h>
17-
#include <mach/spear.h>
17+
#include "spear.h"
1818
#include "generic.h"
1919

2020
#define SPEAR13XX_SYS_SW_RES (VA_MISC_BASE + 0x204)

arch/arm/mach-spear/spear1310.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
#include <asm/mach/arch.h>
1919
#include <asm/mach/map.h>
2020
#include "generic.h"
21-
#include <mach/spear.h>
21+
#include "spear.h"
2222

2323
/* Base addresses */
2424
#define SPEAR1310_RAS_GRP1_BASE UL(0xD8000000)

arch/arm/mach-spear/spear13xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
#include <linux/of.h>
2222
#include <asm/hardware/cache-l2x0.h>
2323
#include <asm/mach/map.h>
24-
#include <mach/spear.h>
24+
#include "spear.h"
2525
#include "generic.h"
2626

2727
void __init spear13xx_l2x0_init(void)

0 commit comments

Comments
 (0)