Skip to content

Commit

Permalink
ARM: 7006/1: Migrate to asm-generic wrapper support
Browse files Browse the repository at this point in the history
With d8ecc5c (kbuild: asm-generic support, 2011-04-27) we can
remove a handful of asm-generic wrappers in ARM code. Since the
generic version of sizes.h doesn't contain SZ_48M, we replace
the 4 users of SZ_48M with the equivalent SZ_32M + SZ_16M.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Cc: Imre Kaloz <kaloz@openwrt.org>
Acked-by: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Eric Miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Stephen Boyd authored and Russell King committed Oct 17, 2011
1 parent d0a7745 commit 3f8e288
Show file tree
Hide file tree
Showing 21 changed files with 22 additions and 73 deletions.
17 changes: 17 additions & 0 deletions arch/arm/include/asm/Kbuild
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
include include/asm-generic/Kbuild.asm

header-y += hwcap.h

generic-y += auxvec.h
generic-y += bitsperlong.h
generic-y += cputime.h
generic-y += emergency-restart.h
generic-y += errno.h
generic-y += ioctl.h
generic-y += irq_regs.h
generic-y += kdebug.h
generic-y += local.h
generic-y += local64.h
generic-y += percpu.h
generic-y += poll.h
generic-y += resource.h
generic-y += sections.h
generic-y += siginfo.h
generic-y += sizes.h
4 changes: 0 additions & 4 deletions arch/arm/include/asm/auxvec.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/bitsperlong.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/cputime.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/emergency-restart.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/errno.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/ioctl.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/irq_regs.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/kdebug.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/local.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/local64.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/percpu.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/poll.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/resource.h

This file was deleted.

1 change: 0 additions & 1 deletion arch/arm/include/asm/sections.h

This file was deleted.

6 changes: 0 additions & 6 deletions arch/arm/include/asm/siginfo.h

This file was deleted.

21 changes: 0 additions & 21 deletions arch/arm/include/asm/sizes.h

This file was deleted.

3 changes: 2 additions & 1 deletion arch/arm/mach-ixp4xx/common-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,8 @@ void __init ixp4xx_pci_preinit(void)
local_write_config(PCI_BASE_ADDRESS_0, 4, PHYS_OFFSET);
local_write_config(PCI_BASE_ADDRESS_1, 4, PHYS_OFFSET + SZ_16M);
local_write_config(PCI_BASE_ADDRESS_2, 4, PHYS_OFFSET + SZ_32M);
local_write_config(PCI_BASE_ADDRESS_3, 4, PHYS_OFFSET + SZ_48M);
local_write_config(PCI_BASE_ADDRESS_3, 4,
PHYS_OFFSET + SZ_32M + SZ_16M);

/*
* Enable CSR window at 64 MiB to allow PCI masters
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mmp/aspenite.c
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ static struct mtd_partition aspenite_nand_partitions[] = {
}, {
.name = "filesystem",
.offset = MTDPART_OFS_APPEND,
.size = SZ_48M,
.size = SZ_32M + SZ_16M,
.mask_flags = 0,
}
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-mmp/ttc_dkb.c
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ static struct mtd_partition ttc_dkb_onenand_partitions[] = {
}, {
.name = "filesystem",
.offset = MTDPART_OFS_APPEND,
.size = SZ_48M,
.size = SZ_32M + SZ_16M,
.mask_flags = 0,
}
};
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-pxa/saar.c
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ static struct mtd_partition saar_onenand_partitions[] = {
}, {
.name = "filesystem",
.offset = MTDPART_OFS_APPEND,
.size = SZ_48M,
.size = SZ_32M + SZ_16M,
.mask_flags = 0,
}
};
Expand Down

0 comments on commit 3f8e288

Please sign in to comment.