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)
committerRafael J. Wysocki <rjw@sisk.pl>
Fri, 11 May 2012 19:11:37 +0000 (21:11 +0200)
commit4fcac10d28e7a046120b51a106b19082d2e57401
treea9b1d178e6d1c8c9bc4c2ed383a4b64f1dfd078c
parent6ff7bb0d02f82968be13937c03e93b6c090229df
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