]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domain: Add struct device to genpd
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 17 Mar 2017 05:56:19 +0000 (11:26 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 9 May 2018 04:45:19 +0000 (10:15 +0530)
commita9920d0b658888643968a8064e2b76935b6a1a31
treea261c4df9dbd0bc419ee64d720c904943e1cedcd
parentd0b492def29d2508d196ba976ef0a0a0c1c496b5
PM / Domain: Add struct device to genpd

The power-domain core would be using the OPP core going forward and the
OPP core has the basic requirement of a device structure for its working.

Add a struct device to the genpd structure. This doesn't register the
device with device core as the "dev" pointer is mostly used by the OPP
core as a cookie for now and registering the device is not mandatory.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Acked-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/base/power/domain.c
include/linux/pm_domain.h