Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7786962beed5161717a299933dd08240e20b6e26
Commit:     7786962beed5161717a299933dd08240e20b6e26
Parent:     ced238f35b2dc9a0c53d0045ec42d818444946b8
Author:     Paul Mundt <[EMAIL PROTECTED]>
AuthorDate: Mon Oct 1 17:30:40 2007 +0900
Committer:  Paul Mundt <[EMAIL PROTECTED]>
CommitDate: Mon Oct 1 17:30:40 2007 +0900

    sh64: mach-harp: Build fixes.
    
    Get the ST50-HARP building again.
    
    Signed-off-by: Paul Mundt <[EMAIL PROTECTED]>
---
 arch/sh64/mach-harp/Makefile |   13 -------------
 arch/sh64/mach-harp/setup.c  |   25 ++++++++-----------------
 2 files changed, 8 insertions(+), 30 deletions(-)

diff --git a/arch/sh64/mach-harp/Makefile b/arch/sh64/mach-harp/Makefile
index 63f065b..2f2963f 100644
--- a/arch/sh64/mach-harp/Makefile
+++ b/arch/sh64/mach-harp/Makefile
@@ -1,14 +1 @@
-#
-# Makefile for the ST50 Harp specific parts of the kernel
-#
-# Note! Dependencies are done automagically by 'make dep', which also
-# removes any old dependencies. DON'T put your own dependencies here
-# unless it's something special (ie not a .c file).
-#
-
-O_TARGET := harp.o
-
 obj-y := setup.o
-
-include $(TOPDIR)/Rules.make
-
diff --git a/arch/sh64/mach-harp/setup.c b/arch/sh64/mach-harp/setup.c
index fcd90af..05011cb 100644
--- a/arch/sh64/mach-harp/setup.c
+++ b/arch/sh64/mach-harp/setup.c
@@ -17,20 +17,10 @@
  * [EMAIL PROTECTED]:          15th May 2003
  *    Use the generic procfs cpuinfo interface, just return a valid board name.
  */
-
-#include <linux/stddef.h>
 #include <linux/init.h>
-#include <linux/mm.h>
-#include <linux/bootmem.h>
-#include <linux/delay.h>
 #include <linux/kernel.h>
-#include <asm/processor.h>
 #include <asm/platform.h>
-#include <asm/io.h>
 #include <asm/irq.h>
-#include <asm/page.h>
-
-#define RES_COUNT(res) ((sizeof((res))/sizeof(struct resource)))
 
 /*
  * Platform Dependent Interrupt Priorities.
@@ -78,8 +68,10 @@ struct resource io_resources[] = {
 };
 
 struct resource kram_resources[] = {
-       { "Kernel code", 0, 0 },        /* These must be last in the array */
-       { "Kernel data", 0, 0 }         /* These must be last in the array */
+       /* These must be last in the array */
+       { .name = "Kernel code", .start = 0, .end = 0 },
+       /* These must be last in the array */
+       { .name = "Kernel data", .start = 0, .end = 0 }
 };
 
 struct resource xram_resources[] = {
@@ -95,13 +87,13 @@ struct sh64_platform platform_parms = {
        .initial_root_dev =     0x0100,
        .loader_type =          1,
        .io_res_p =             io_resources,
-       .io_res_count =         RES_COUNT(io_resources),
+       .io_res_count =         ARRAY_SIZE(io_resources),
        .kram_res_p =           kram_resources,
-       .kram_res_count =       RES_COUNT(kram_resources),
+       .kram_res_count =       ARRAY_SIZE(kram_resources),
        .xram_res_p =           xram_resources,
-       .xram_res_count =       RES_COUNT(xram_resources),
+       .xram_res_count =       ARRAY_SIZE(xram_resources),
        .rom_res_p =            rom_resources,
-       .rom_res_count =        RES_COUNT(rom_resources),
+       .rom_res_count =        ARRAY_SIZE(rom_resources),
 };
 
 int platform_int_priority[NR_INTC_IRQS] = {
@@ -135,4 +127,3 @@ const char *get_system_type(void)
 {
        return "ST50 Harp";
 }
-
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to