Revert "ata: ahci_platform: allow disabling of hotplug to save power"
This reverts commit aece27a2f0
.
Causes boot failure on some devices.
http://lore.kernel.org/r/CA+G9fYuKW_jCFZPqG4tz=QY9ROfHO38KiCp9XTA+KaDOFVtcqQ@mail.gmail.com
Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
@@ -68,13 +68,8 @@ disable_resources:
|
||||
return rc;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
static const struct dev_pm_ops ahci_pm_ops = {
|
||||
SET_SYSTEM_SLEEP_PM_OPS(ahci_platform_suspend, ahci_platform_resume)
|
||||
SET_RUNTIME_PM_OPS(ahci_platform_runtime_suspend,
|
||||
ahci_platform_runtime_resume, NULL)
|
||||
};
|
||||
#endif
|
||||
static SIMPLE_DEV_PM_OPS(ahci_pm_ops, ahci_platform_suspend,
|
||||
ahci_platform_resume);
|
||||
|
||||
static const struct of_device_id ahci_of_match[] = {
|
||||
{ .compatible = "generic-ahci", },
|
||||
@@ -103,9 +98,7 @@ static struct platform_driver ahci_driver = {
|
||||
.name = DRV_NAME,
|
||||
.of_match_table = ahci_of_match,
|
||||
.acpi_match_table = ahci_acpi_match,
|
||||
#ifdef CONFIG_PM_SLEEP
|
||||
.pm = &ahci_pm_ops,
|
||||
#endif
|
||||
},
|
||||
};
|
||||
module_platform_driver(ahci_driver);
|
||||
|
Reference in New Issue
Block a user