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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Peter,

On Thu, 22 Jan 2015 08:23:50 +1100 Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> 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                    sfr@xxxxxxxxxxxxxxxx

Attachment: pgplDahfbI5h5.pgp
Description: OpenPGP digital signature


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux