diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2017-08-21 10:05:00 +0200 |
---|---|---|
committer | Michael Turquette <mturquette@baylibre.com> | 2017-09-07 15:25:46 -0700 |
commit | d2f18d7e200b8714beffd4eae7f27335b311b2d5 (patch) | |
tree | 38224603754e12e992c9d4fc785bf16fd3410732 /drivers/clk/samsung/clk.h | |
parent | 9a34b45397e5a389e25a0c5d39983300d040e5e2 (diff) | |
download | linux-d2f18d7e200b8714beffd4eae7f27335b311b2d5.tar.bz2 |
clk: samsung: Add support for runtime PM
This patch adds struct device pointer to samsung_clk_provider and forwarding it
to clk_register_* functions, so drivers can register clocks, which use runtime
pm feature.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Tested-by: Chanwoo Choi <cw00.choi@samsung.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Michael Turquette <mturquette@baylibre.com>
Link: lkml.kernel.org/r/1503302703-13801-3-git-send-email-m.szyprowski@samsung.com
Diffstat (limited to 'drivers/clk/samsung/clk.h')
-rw-r--r-- | drivers/clk/samsung/clk.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/samsung/clk.h b/drivers/clk/samsung/clk.h index b8ca0dd3a38b..f0acae4f5d1b 100644 --- a/drivers/clk/samsung/clk.h +++ b/drivers/clk/samsung/clk.h @@ -24,6 +24,7 @@ */ struct samsung_clk_provider { void __iomem *reg_base; + struct device *dev; spinlock_t lock; /* clk_data must be the last entry due to variable lenght 'hws' array */ struct clk_hw_onecell_data clk_data; |