We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e891281 + 49072f9 commit ca69549Copy full SHA for ca69549
drivers/base/power/common.c
@@ -98,15 +98,15 @@ EXPORT_SYMBOL_GPL(dev_pm_put_subsys_data);
98
* Callers must ensure proper synchronization of this function with power
99
* management callbacks.
100
*
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.
+ * 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.
103
*/
104
int dev_pm_domain_attach(struct device *dev, bool power_on)
105
{
106
int ret;
107
108
if (dev->pm_domain)
109
- return -EEXIST;
+ return 0;
110
111
ret = acpi_dev_pm_attach(dev, power_on);
112
if (!ret)
0 commit comments