PM / Domains: Drop genpd as in-param for pm_genpd_remove_device()
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 29 May 2018 10:04:15 +0000 (12:04 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 May 2018 11:51:51 +0000 (13:51 +0200)
commit924f448699627722a7dcaefb857d09fd324e75c5
treed71826e918b6182ee810fed76f951da88cb0faef
parent1a7a67072f35b3e65e76fc694b088ca48b4dae35
PM / Domains: Drop genpd as in-param for pm_genpd_remove_device()

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.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/base/power/domain.c
drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c
include/linux/pm_domain.h