Message ID | 1526309557-7995-1-git-send-email-ulf.hansson@linaro.org |
---|---|
State | Accepted |
Commit | 94ef9b8e2b941ab7e7ce88fa48ce626fa529bf2f |
Headers | show |
Series | PM / Domains: Don't return -EEXIST at attach when PM domain exists | expand |
diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index 5e4b481..390868c 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -106,7 +106,7 @@ int dev_pm_domain_attach(struct device *dev, bool power_on) int ret; if (dev->pm_domain) - return -EEXIST; + return 0; ret = acpi_dev_pm_attach(dev, power_on); if (!ret)