return rc;
}
+#ifdef CONFIG_PM_SLEEP
static void tpm_tis_reenable_interrupts(struct tpm_chip *chip)
{
u32 intmask;
return 0;
}
+#endif
static SIMPLE_DEV_PM_OPS(tpm_tis_pm, tpm_pm_suspend, tpm_tis_resume);
if (acpi_dev_resource_interrupt(ares, 0, &res))
tpm_info->irq = res.start;
- else if (acpi_dev_resource_memory(ares, &res))
+ else if (acpi_dev_resource_memory(ares, &res)) {
tpm_info->res = res;
+ tpm_info->res.name = NULL;
+ }
return 1;
}