Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca695496 authored by Rafael J. Wysocki's avatar Rafael J. Wysocki
Browse files

Merge branch 'pm-domains' into pm-opp

parents e8912812 49072f97
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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)