tpm_crb/tis: fix: use dev_name() for /proc/iomem

In all cases use dev_name() for the mapped resources. This is both
for sake of consistency and also with some platforms resource name
given by ACPI object seems to return garbage.

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@linux.intel.com>
Fixes: 1bd047be37 ("tpm_crb: Use devm_ioremap_resource")
This commit is contained in:
Jarkko Sakkinen
2016-02-17 02:10:52 +02:00
부모 186d124f07
커밋 30f9c8c9e2
2개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제

파일 보기

@@ -227,8 +227,10 @@ static int crb_check_resource(struct acpi_resource *ares, void *data)
struct crb_priv *priv = data;
struct resource res;
if (acpi_dev_resource_memory(ares, &res))
if (acpi_dev_resource_memory(ares, &res)) {
priv->res = res;
priv->res.name = NULL;
}
return 1;
}