Subject: Re: [PATCH] tpm/tpm_tis: Add missing ifdef CONFIG_ACPI for pnp_acpi_device

From: Stephen Rothwell <[email-masked]>
Date: Thu, 22 Jan 2015 08:34:32 +1100

Hi Peter,

On Thu, 22 Jan 2015 08:23:50 +1100 Stephen Rothwell <[email-masked]> wrote:
>
> To save on the ifdef, why not
> 
> 	struct acpi_device *acpi;
> 
> 	.
> 	.
> 
> 	acpi = pnp_acpi_device(dev);
> 	if (acpi)
> 		acpi_dev_handle = acpi->handle;

I guess struct acpi_device may not be visible when CONFIG_ACPI is not
set? That would be a pain :-(

-- 
Cheers,
Stephen Rothwell                    [email-masked]