]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ACPICA: Fix warning for 64-bit build
authorBob Moore <robert.moore@intel.com>
Fri, 15 Aug 2008 02:32:59 +0000 (04:32 +0200)
committerLen Brown <len.brown@intel.com>
Thu, 23 Oct 2008 03:14:37 +0000 (23:14 -0400)
Fixes warning from exconfig.c on 64-bit build.

AK: This actually was fixed earlier in Linux, this just syncs with
AK: the version of the fix that went into the ACPCA codebase

Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/acpi/executer/exconfig.c

index 331a114f42c9443d153603b46cdcb9ad6d3bae2a..4c512c2990e5dae1e756619b2d3e80ed56f1befd 100644 (file)
@@ -96,8 +96,7 @@ acpi_ex_add_table(u32 table_index,
 
        /* Install the new table into the local data structures */
 
-       obj_desc->reference.object = ACPI_CAST_PTR(void,
-                       (unsigned long)table_index);
+       obj_desc->reference.object = ACPI_TO_POINTER(table_index);
 
        /* Add the table to the namespace */