dmaengine: acpi: Use ACPI_COMPANION() instead of acpi_bus_get_device()
authorJarkko Nikula <jarkko.nikula@linux.intel.com>
Fri, 4 Sep 2015 13:12:30 +0000 (16:12 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 30 Sep 2015 06:51:27 +0000 (12:21 +0530)
commitaff1e0cee36ab679552846a18d15dcb6d2e3fc4c
tree701c6f1980561c8cb7e701f43f64ecc07bb879db
parentddfe4d0cce7828d79f3e3762c664342658c3f254
dmaengine: acpi: Use ACPI_COMPANION() instead of acpi_bus_get_device()

Get pointer to the struct acpi_device by using ACPI_COMPANION() macro. This
is more efficient than using ACPI_HANDLE() and acpi_bus_get_device().

Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/acpi-dma.c