]> git.baikalelectronics.ru Git - kernel.git/commit
tpm: fix tpm_acpi sparse warning on different address spaces
authorKent Yoder <key@linux.vnet.ibm.com>
Tue, 4 Sep 2012 16:18:21 +0000 (11:18 -0500)
committerJames Morris <james.l.morris@oracle.com>
Wed, 12 Sep 2012 03:18:31 +0000 (13:18 +1000)
commit4da742c12d0e36f3f120ddb3921a004bda0aaac3
tree6712703f4f6c89fc47b42bf7fcf6a672810b1603
parent6353f24989306964b2f74b1909439315949979fa
tpm: fix tpm_acpi sparse warning on different address spaces

acpi_os_map_memory expects its return value to be in the __iomem address
space. Tag the variable we're using as such and use memcpy_fromio to
avoid further sparse warnings.

Signed-off-by: Kent Yoder <key@linux.vnet.ibm.com>
Signed-off-by: James Morris <james.l.morris@oracle.com>
drivers/char/tpm/tpm_acpi.c