Skip to contentSkip to conversation

acpi: reboot: use acpi_reset interface

PATCH In review Lin Ming 1 participant 1 message Nov 26, 2008 ACPI

lore
Share & tools
lore

Lin Ming

author
#0 lore raw

PATCH 3/8 acpi: reboot: use acpi_reset interface

We have changed the acpi_hw_low_level_read and acpi_low_level_write functions to the public acpi_read and acpi_write to allow direct access to ACPI registers.

acpi_read/write: http://git.acpica.org/repos/?p=acpica.git;a=commitdiff;h=8ce404a262f4eccf8ef484ef7e9a8f3604e031da
acpi_reset: http://git.acpica.org/repos/?p=acpica.git;a=commitdiff;h=3409e43b6386884be43dd3e6ec54de60e4fc191e

---
 drivers/acpi/reboot.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/acpi/reboot.c +1 -1
index a6b662c..93f9114 100644
@@ -42,7 +42,7 @@ void acpi_reboot(void)
 	case ACPI_ADR_SPACE_SYSTEM_MEMORY:
 	case ACPI_ADR_SPACE_SYSTEM_IO:
 		printk(KERN_DEBUG "ACPI MEMORY or I/O RESET_REG.\n");
-		acpi_hw_low_level_write(8, reset_value, rr);
+		acpi_reset();
 		break;
 	}
 	/* Wait ten seconds */