ACPI / RTC: Fix CMOS RTC opregion handler accesses to wrong addresses
authorLee, Chun-Yi <joeyli.kernel@gmail.com>
Thu, 4 Sep 2014 07:13:39 +0000 (15:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 5 Oct 2014 21:52:15 +0000 (14:52 -0700)
commit1d90e1104ed216d8105a2062854ab1c82058b738
treed4516a12d2eb0f31782fa7a4f0f47c96093a3ee8
parentbd62e7855a732200d58b6473f8cf8830f20dfc90
ACPI / RTC: Fix CMOS RTC opregion handler accesses to wrong addresses

commit 9389f46e9782ea5e56fbd7b2e59ba7c08f3ba86b upstream.

The value64 parameter is an u64 point that used to transfer the value
for write to CMOS, or used to return the value that's read from CMOS.

The value64 is an u64 point, so don't need get address again. It causes
acpi_cmos_rtc_space_handler always return 0 to reader and didn't write
expected value to CMOS.

Signed-off-by: Lee, Chun-Yi <jlee@suse.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/acpi/acpi_cmos_rtc.c