mmc: sdhci-acpi: Remove unneeded acpi_bus_get_status() call
PATCH v2 1/1 mmc: sdhci-acpi: Remove unneeded acpi_bus_get_status() call
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 <[email protected]>
---
Changes in v2:
-This is a new patch replacing "mmc: sdhci-acpi: Check device status
before calling fix_up_power()"
--- drivers/mmc/host/sdhci-acpi.c | 3 --- 1 file changed, 3 deletions(-)
drivers/mmc/host/sdhci-acpi.c +0 -3
@@ -400,9 +400,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 ;
Signature · 1 line
2.9.3