diff options
author | Ulf Hansson | 2016-09-21 15:38:50 +0200 |
---|---|---|
committer | Rafael J. Wysocki | 2016-09-24 01:54:28 +0200 |
commit | 85168d56cc8603963cfdda1e2b9e8f9b68aef867 (patch) | |
tree | 126d44219109a7733848f7a4615aff193e9fac7d /drivers/base/driver.c | |
parent | PM / Domains: Allow holes in genpd_data.domains array (diff) | |
download | kernel-qcow2-linux-85168d56cc8603963cfdda1e2b9e8f9b68aef867.tar.gz kernel-qcow2-linux-85168d56cc8603963cfdda1e2b9e8f9b68aef867.tar.xz kernel-qcow2-linux-85168d56cc8603963cfdda1e2b9e8f9b68aef867.zip |
PM / Domains: Simplify detaching a device from its genpd
There's no need to validate the PM domain by using genpd_lookup_dev() when
removing the device via genpd's genpd_dev_pm_detach() function. That's
because this function can't be called, unless there is a valid PM domain
for the device.
To simplify the behaviour, let's move code from pm_genpd_remove_device()
into a new internal function, genpd_remove_device(), which is called from
pm_genpd_remove_device() and genpd_dev_pm_detach().
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Lina Iyer <lina.iyer@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/driver.c')
0 files changed, 0 insertions, 0 deletions