diff options
author | Ulf Hansson <ulf.hansson@linaro.org> | 2019-08-29 16:48:15 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2019-09-02 22:38:00 +0200 |
commit | 3ea4ca9267cf5d02149f7d8a11d8b4c82723a668 (patch) | |
tree | 8db7e502e8bf8f18520ca19aa951ba81814ac2bb /drivers/rtc/rtc-ds1347.c | |
parent | b3ad17c09899d491cf9815a6db44d3f9b3f244e7 (diff) | |
download | blackbird-op-linux-3ea4ca9267cf5d02149f7d8a11d8b4c82723a668.tar.gz blackbird-op-linux-3ea4ca9267cf5d02149f7d8a11d8b4c82723a668.zip |
PM / Domains: Verify PM domain type in dev_pm_genpd_set_performance_state()
The dev_pm_genpd_set_performance_state() could in principle be called for a
device that has a different PM domain type attached than a genpd. This
would lead to a problem as dev_to_genpd() uses the container_of macro.
Address this problem by using dev_to_genpd_safe() instead.
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/rtc/rtc-ds1347.c')
0 files changed, 0 insertions, 0 deletions