ACPI_COMPANION() macro reduces a code to get a companion device out of
struct device.
Use it instead of an old method.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
 static int sdhci_acpi_probe(struct platform_device *pdev)
 {
        struct device *dev = &pdev->dev;
-       acpi_handle handle = ACPI_HANDLE(dev);
        struct acpi_device *device, *child;
        struct sdhci_acpi_host *c;
        struct sdhci_host *host;
        const char *uid;
        int err;
 
-       if (acpi_bus_get_device(handle, &device))
+       device = ACPI_COMPANION(dev);
+       if (!device)
                return -ENODEV;
 
        hid = acpi_device_hid(device);