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