Skip to content

Commit ca69549

Browse files
committed
Merge branch 'pm-domains' into pm-opp
2 parents e891281 + 49072f9 commit ca69549

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/base/power/common.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,15 +98,15 @@ EXPORT_SYMBOL_GPL(dev_pm_put_subsys_data);
9898
* Callers must ensure proper synchronization of this function with power
9999
* management callbacks.
100100
*
101-
* Returns 0 on successfully attached PM domain and when it found that the
102-
* device don't need a PM domain, else a negative error code.
101+
* Returns 0 on successfully attached PM domain, or when it is found that the
102+
* device doesn't need a PM domain, else a negative error code.
103103
*/
104104
int dev_pm_domain_attach(struct device *dev, bool power_on)
105105
{
106106
int ret;
107107

108108
if (dev->pm_domain)
109-
return -EEXIST;
109+
return 0;
110110

111111
ret = acpi_dev_pm_attach(dev, power_on);
112112
if (!ret)

0 commit comments

Comments
 (0)