diff options
Diffstat (limited to 'drivers/base/power/domain.c')
-rw-r--r-- | drivers/base/power/domain.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/power/domain.c b/drivers/base/power/domain.c index cde5983de6c2..c3eaa08a8f96 100644 --- a/drivers/base/power/domain.c +++ b/drivers/base/power/domain.c | |||
@@ -1448,7 +1448,7 @@ int pm_genpd_add_subdomain(struct generic_pm_domain *genpd, | |||
1448 | goto out; | 1448 | goto out; |
1449 | } | 1449 | } |
1450 | 1450 | ||
1451 | list_for_each_entry(link, &genpd->slave_links, slave_node) { | 1451 | list_for_each_entry(link, &genpd->master_links, master_node) { |
1452 | if (link->slave == subdomain && link->master == genpd) { | 1452 | if (link->slave == subdomain && link->master == genpd) { |
1453 | ret = -EINVAL; | 1453 | ret = -EINVAL; |
1454 | goto out; | 1454 | goto out; |