diff options
author | Sam Protsenko <semen.protsenko@linaro.org> | 2023-02-22 22:19:35 -0600 |
---|---|---|
committer | Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> | 2023-03-06 16:55:26 +0100 |
commit | a4c78367f62ae36aa3529029346788cc7f5e3073 (patch) | |
tree | 96d6dfc7afdff6fbb1ba9f60d3215d8e0e8bb917 /drivers/clk/samsung/clk-s5pv210.c | |
parent | 65bf1fbe784cafaa10906b1ba1402920c61f4a7e (diff) | |
download | lwn-a4c78367f62ae36aa3529029346788cc7f5e3073.tar.gz lwn-a4c78367f62ae36aa3529029346788cc7f5e3073.zip |
clk: samsung: Set dev in samsung_clk_init()
Some drivers set dev to context in order to implement PM. Make that part
of samsung_clk_init() instead of assigning `ctx->dev = dev' separately.
No functional change.
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Tested-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20230223041938.22732-4-semen.protsenko@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Diffstat (limited to 'drivers/clk/samsung/clk-s5pv210.c')
-rw-r--r-- | drivers/clk/samsung/clk-s5pv210.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clk/samsung/clk-s5pv210.c b/drivers/clk/samsung/clk-s5pv210.c index b0ab6bc9d21d..cd85342e4ddb 100644 --- a/drivers/clk/samsung/clk-s5pv210.c +++ b/drivers/clk/samsung/clk-s5pv210.c @@ -743,7 +743,7 @@ static void __init __s5pv210_clk_init(struct device_node *np, struct samsung_clk_provider *ctx; struct clk_hw **hws; - ctx = samsung_clk_init(reg_base, NR_CLKS); + ctx = samsung_clk_init(NULL, reg_base, NR_CLKS); hws = ctx->clk_data.hws; samsung_clk_register_mux(ctx, early_mux_clks, |