PM / Domains: Fix link checking when add subdomain
authorHuang Ying <ying.huang@intel.com>
Mon, 7 May 2012 19:35:45 +0000 (21:35 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Mon, 23 Jul 2012 08:35:11 +0000 (13:35 +0530)
commiteba9dad837c1301c242efeb7271d5e27be04bf55
treed835a46e22a642724cd8feec637c9e05c2acbaab
parent698179484b909a4baf928838cdce89768848eee0
PM / Domains: Fix link checking when add subdomain

Current pm_genpd_add_subdomain() will allow duplicated link between
master and slave domain.  This patch fixed it.

Because when current pm_genpd_add_subdomain() checks whether the link
between the master and slave generic PM domain already exists,
slave_links instead of master_links of master domain is used.

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
drivers/base/power/domain.c