Skip to content

Commit

Permalink
mmc: sdhci-acpi: Remove unneeded acpi_bus_get_status() call
Browse files Browse the repository at this point in the history
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]>
Acked-by: Adrian Hunter <[email protected]>
Signed-off-by: Ulf Hansson <[email protected]>
  • Loading branch information
jwrdegoede authored and storulf committed Jun 20, 2017
1 parent 86beb53 commit 7244ac0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mmc/host/sdhci-acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 7244ac0

Please sign in to comment.