patch-2.4.25 linux-2.4.25/drivers/acpi/tables/tbconvrt.c
Next file: linux-2.4.25/drivers/acpi/tables/tbget.c
Previous file: linux-2.4.25/drivers/acpi/resources/rsxface.c
Back to the patch index
Back to the overall index
- Lines: 41
- Date:
2004-02-18 05:36:31.000000000 -0800
- Orig file:
linux-2.4.24/drivers/acpi/tables/tbconvrt.c
- Orig date:
2003-11-28 10:26:19.000000000 -0800
diff -urN linux-2.4.24/drivers/acpi/tables/tbconvrt.c linux-2.4.25/drivers/acpi/tables/tbconvrt.c
@@ -5,7 +5,7 @@
*****************************************************************************/
/*
- * Copyright (C) 2000 - 2003, R. Byron Moore
+ * Copyright (C) 2000 - 2004, R. Byron Moore
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -138,11 +138,11 @@
for (i = 0; i < acpi_gbl_rsdt_table_count; i++) {
if (acpi_gbl_RSDP->revision < 2) {
ACPI_STORE_ADDRESS (new_table->table_offset_entry[i],
- ((struct rsdt_descriptor_rev1 *) table_info->pointer)->table_offset_entry[i]);
+ (ACPI_CAST_PTR (struct rsdt_descriptor_rev1, table_info->pointer))->table_offset_entry[i]);
}
else {
new_table->table_offset_entry[i] =
- ((XSDT_DESCRIPTOR *) table_info->pointer)->table_offset_entry[i];
+ (ACPI_CAST_PTR (XSDT_DESCRIPTOR, table_info->pointer))->table_offset_entry[i];
}
}
@@ -152,7 +152,7 @@
/* Point the table descriptor to the new table */
- table_info->pointer = (struct acpi_table_header *) new_table;
+ table_info->pointer = ACPI_CAST_PTR (struct acpi_table_header, new_table);
table_info->length = table_size;
table_info->allocation = ACPI_MEM_ALLOCATED;
@@ -469,7 +469,7 @@
/* Install the new table */
- table_desc->pointer = (struct acpi_table_header *) acpi_gbl_FADT;
+ table_desc->pointer = ACPI_CAST_PTR (struct acpi_table_header, acpi_gbl_FADT);
table_desc->allocation = ACPI_MEM_ALLOCATED;
table_desc->length = sizeof (struct fadt_descriptor_rev2);
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)