mmc: sdhci-acpi: Remove unneeded acpi_bus_get_status() call
authorHans de Goede <hdegoede@redhat.com>
Wed, 24 May 2017 10:47:53 +0000 (12:47 +0200)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 20 Jun 2017 08:30:36 +0000 (10:30 +0200)
The acpi-subsys already calls acpi_bus_get_status() and checks that
device->status.present is set before even registering the platform_device
so out probe function will never get called if device->status.present is
false and there is no need for this check.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-acpi.c

index c6a9a1bfaa22d9f2558e2806cf027ca730822d28..89d9a8c014f5bd83e803d0ce87c441667a7b7a98 100644 (file)
@@ -396,9 +396,6 @@ static int sdhci_acpi_probe(struct platform_device *pdev)
                if (child->status.present && child->status.enabled)
                        acpi_device_fix_up_power(child);
 
-       if (acpi_bus_get_status(device) || !device->status.present)
-               return -ENODEV;
-
        if (sdhci_acpi_byt_defer(dev))
                return -EPROBE_DEFER;