diff --git a/drivers/base/power/common.c b/drivers/base/power/common.c index 5e4b481595bd7be4ae334528c3f8c3a411874ad7..7ae62b6355b8d9ce5da5518f0be8f9c3bf217ab1 100644 --- a/drivers/base/power/common.c +++ b/drivers/base/power/common.c @@ -98,15 +98,15 @@ EXPORT_SYMBOL_GPL(dev_pm_put_subsys_data); * Callers must ensure proper synchronization of this function with power * management callbacks. * - * Returns 0 on successfully attached PM domain and when it found that the - * device don't need a PM domain, else a negative error code. + * Returns 0 on successfully attached PM domain, or when it is found that the + * device doesn't need a PM domain, else a negative error code. */ 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)