mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
mmc: sdio: Convert to dev_pm_domain_attach|detach()
Previously only the ACPI PM domain was supported by the sdio bus. Let's convert to the common attach/detach functions for PM domains, which currently means we are extending the support to include the generic PM domain as well. Signed-off-by: Ulf Hansson <[email protected]> Reviewed-by: Kevin Hilman <[email protected]> Reviewed-by: Dmitry Torokhov <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
This commit is contained in:
parent
e09b0d4e9b
commit
397a025352
1 changed files with 2 additions and 2 deletions
|
|
@ -315,7 +315,7 @@ int sdio_add_func(struct sdio_func *func)
|
|||
ret = device_add(&func->dev);
|
||||
if (ret == 0) {
|
||||
sdio_func_set_present(func);
|
||||
acpi_dev_pm_attach(&func->dev, false);
|
||||
dev_pm_domain_attach(&func->dev, false);
|
||||
}
|
||||
|
||||
return ret;
|
||||
|
|
@ -332,7 +332,7 @@ void sdio_remove_func(struct sdio_func *func)
|
|||
if (!sdio_func_present(func))
|
||||
return;
|
||||
|
||||
acpi_dev_pm_detach(&func->dev, false);
|
||||
dev_pm_domain_detach(&func->dev, false);
|
||||
device_del(&func->dev);
|
||||
put_device(&func->dev);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue