Skip to content

Commit

Permalink
ACPI: fix build warning
Browse files Browse the repository at this point in the history
CC      drivers/acpi/executer/exregion.o
drivers/acpi/executer/exregion.c: In function
‘acpi_ex_pci_config_space_handler’:
drivers/acpi/executer/exregion.c:369: attention : passing argument 3 of
‘acpi_os_read_pci_configuration’ from incompatible pointer type

exposed by 10270d4

http://bugzilla.kernel.org/show_bug.cgi?id=9989

Signed-off-by: Ming Lin <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Ming Lin authored and Len Brown committed Feb 21, 2008
1 parent e80af3a commit 1186974
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/acpi/executer/exregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,7 @@ acpi_ex_pci_config_space_handler(u32 function,
acpi_status status = AE_OK;
struct acpi_pci_id *pci_id;
u16 pci_register;
u32 value32;

ACPI_FUNCTION_TRACE(ex_pci_config_space_handler);

Expand All @@ -364,9 +365,9 @@ acpi_ex_pci_config_space_handler(u32 function,
switch (function) {
case ACPI_READ:

*value = 0;
status = acpi_os_read_pci_configuration(pci_id, pci_register,
value, bit_width);
&value32, bit_width);
*value = value32;
break;

case ACPI_WRITE:
Expand Down

0 comments on commit 1186974

Please sign in to comment.