Thread (34 messages) 34 messages, 6 authors, 2018-06-27

[PATCH v2 3/9] PM / Domains: Drop genpd as in-param for pm_genpd_remove_device()

From: viresh.kumar@linaro.org (Viresh Kumar)
Date: 2018-05-31 06:15:34
Also in: linux-pm, linux-tegra, lkml

On 29-05-18, 12:04, Ulf Hansson wrote:
There is no need to pass a genpd struct to pm_genpd_remove_device(), as we
already have the information about the PM domain (genpd) through the device
structure.

Additionally, we don't allow to remove a PM domain from a device, other
than the one it may have assigned to it, so really it does not make sense
to have a separate in-param for it.

For these reason, drop it and update the current only call to
pm_genpd_remove_device() from amdgpu_acp.

Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian K?nig <christian.koenig@amd.com>
Cc: David (ChunMing) Zhou <redacted>
Signed-off-by: Ulf Hansson <redacted>
---
 drivers/base/power/domain.c             | 8 ++++----
 drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 2 +-
 include/linux/pm_domain.h               | 5 ++---
 3 files changed, 7 insertions(+), 8 deletions(-)
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>

-- 
viresh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help