[COMMON] devfreq: exynos: Modify to get devfreq struct
authorHyeonseong Gil <hs.gil@samsung.com>
Mon, 10 Sep 2018 00:16:03 +0000 (09:16 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:04 +0000 (20:23 +0300)
commitbe4f1dfd708248e1721cd542f37bad818a4a9375
tree68b105e95bf4a8693aeb2d04d997d02df1b93558
parenta16f2d5e84d35f0d4a3c9fb934eb902ee0bf15d7
[COMMON] devfreq: exynos: Modify to get devfreq struct

Previously, find_exynos_devfreq_device() returns (struct dev *)
and it is used to get devfreq struct by using devfreq_list.
This method hold the mutex(devfreq_list_lock).
It may cause a circular lock problem.
Therefore, it is modified to get devfreq struct directly.

Change-Id: Iee0970dd77d67d9a344419cff47e112e7a2bbee7
Signed-off-by: Hyeonseong Gil <hs.gil@samsung.com>
drivers/devfreq/devfreq.c
drivers/devfreq/exynos/exynos-devfreq.c
include/soc/samsung/exynos-devfreq.h