Commit 397a0253 authored by Ulf Hansson's avatar Ulf Hansson Committed by Rafael J. Wysocki

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: default avatarUlf Hansson <ulf.hansson@linaro.org>
Reviewed-by: default avatarKevin Hilman <khilman@linaro.org>
Reviewed-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent e09b0d4e
...@@ -315,7 +315,7 @@ int sdio_add_func(struct sdio_func *func) ...@@ -315,7 +315,7 @@ int sdio_add_func(struct sdio_func *func)
ret = device_add(&func->dev); ret = device_add(&func->dev);
if (ret == 0) { if (ret == 0) {
sdio_func_set_present(func); sdio_func_set_present(func);
acpi_dev_pm_attach(&func->dev, false); dev_pm_domain_attach(&func->dev, false);
} }
return ret; return ret;
...@@ -332,7 +332,7 @@ void sdio_remove_func(struct sdio_func *func) ...@@ -332,7 +332,7 @@ void sdio_remove_func(struct sdio_func *func)
if (!sdio_func_present(func)) if (!sdio_func_present(func))
return; return;
acpi_dev_pm_detach(&func->dev, false); dev_pm_domain_detach(&func->dev, false);
device_del(&func->dev); device_del(&func->dev);
put_device(&func->dev); put_device(&func->dev);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment