]> pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] Compilation fix for ES7000 when no ACPI is specified in config (i386)
authorNatalie.Protasevich@unisys.com <Natalie.Protasevich@unisys.com>
Thu, 23 Mar 2006 10:59:36 +0000 (02:59 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 23 Mar 2006 15:38:04 +0000 (07:38 -0800)
ES7000 platform code clean up for compilation errors and a warning.
Ifdef'd the ACPI related parts in the ES7000 platform code.  They were
causing compile errors in certain configuration (without ACPI defined).  I
think this approach would be best (as opposed to Kconfig changes) since it
only touches the subarch...

Signed-off-by: <Natalie.Protasevich@unisys.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/mpparse.c
arch/i386/mach-es7000/es7000.h
arch/i386/mach-es7000/es7000plat.c
include/asm-i386/mach-es7000/mach_mpparse.h

index e6e2f43db85e25b22962292b11a76ca3624d16c7..e85e463af7ce5f759f69f594c85e0f51d25515a7 100644 (file)
@@ -828,6 +828,8 @@ void __init find_smp_config (void)
                smp_scan_config(address, 0x400);
 }
 
+int es7000_plat;
+
 /* --------------------------------------------------------------------------
                             ACPI-based MP Configuration
    -------------------------------------------------------------------------- */
@@ -1011,8 +1013,6 @@ void __init mp_override_legacy_irq (
        return;
 }
 
-int es7000_plat;
-
 void __init mp_config_acpi_legacy_irqs (void)
 {
        struct mpc_config_intsrc intsrc;
index f1e3204f5deca799b82060afdfd0666eb13d20df..80566ca4a80a614ca9785af4f8d56e7e7782a11e 100644 (file)
@@ -83,6 +83,7 @@ struct es7000_oem_table {
        struct psai psai;
 };
 
+#ifdef CONFIG_ACPI
 struct acpi_table_sdt {
        unsigned long pa;
        unsigned long count;
@@ -99,6 +100,9 @@ struct oem_table {
        u32 OEMTableSize;
 };
 
+extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
+#endif
+
 struct mip_reg {
        unsigned long long off_0;
        unsigned long long off_8;
@@ -114,7 +118,6 @@ struct mip_reg {
 #define        MIP_FUNC(VALUE)         (VALUE & 0xff)
 
 extern int parse_unisys_oem (char *oemptr);
-extern int find_unisys_acpi_oem_table(unsigned long *oem_addr);
 extern void setup_unisys(void);
 extern int es7000_start_cpu(int cpu, unsigned long eip);
 extern void es7000_sw_apic(void);
index a9ab0644f4035fd6b6e8e16b5054e09e663d117b..3d0fc853516d196eb379149dd33c58ff236b9507 100644 (file)
@@ -51,8 +51,6 @@ struct mip_reg                *host_reg;
 int                    mip_port;
 unsigned long          mip_addr, host_addr;
 
-#if defined(CONFIG_X86_IO_APIC) && defined(CONFIG_ACPI)
-
 /*
  * GSI override for ES7000 platforms.
  */
@@ -76,8 +74,6 @@ es7000_rename_gsi(int ioapic, int gsi)
        return gsi;
 }
 
-#endif /* (CONFIG_X86_IO_APIC) && (CONFIG_ACPI) */
-
 void __init
 setup_unisys(void)
 {
@@ -160,6 +156,7 @@ parse_unisys_oem (char *oemptr)
        return es7000_plat;
 }
 
+#ifdef CONFIG_ACPI
 int __init
 find_unisys_acpi_oem_table(unsigned long *oem_addr)
 {
@@ -212,6 +209,7 @@ find_unisys_acpi_oem_table(unsigned long *oem_addr)
        }
        return -1;
 }
+#endif
 
 static void
 es7000_spin(int n)
index 4a0637a3e2081e6b51ace484f3d33ec2d9d6c6ce..99f66be240be66e517e93b14fe0b9fda52e65752 100644 (file)
@@ -30,7 +30,8 @@ static inline int mps_oem_check(struct mp_config_table *mpc, char *oem,
        return 0;
 }
 
-static inline int es7000_check_dsdt()
+#ifdef CONFIG_ACPI
+static inline int es7000_check_dsdt(void)
 {
        struct acpi_table_header *header = NULL;
        if(!acpi_get_table_header_early(ACPI_DSDT, &header))
@@ -54,6 +55,11 @@ static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
        }
        return 0;
 }
-
+#else
+static inline int acpi_madt_oem_check(char *oem_id, char *oem_table_id)
+{
+       return 0;
+}
+#endif
 
 #endif /* __ASM_MACH_MPPARSE_H */