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)
commita40695edad6a69561b299272028c172e2d981666
tree6712703f4f6c89fc47b42bf7fcf6a672810b1603
parent9ddf6aa8cbc07764c7fe33cfdb8644ca5e828252
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