Skip to content

Commit 45dab81

Browse files
Sam Protsenkokrzk
authored andcommitted
clk: samsung: Remove np argument from samsung_clk_init()
The code using `np' argument was removed from samsung_clk_init(). Remove that leftover parameter as well. No functional change. Fixes: d5e136a ("clk: samsung: Register clk provider only after registering its all clocks") 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-3-semen.protsenko@linaro.org Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent fe15c26 commit 45dab81

File tree

8 files changed

+10
-11
lines changed

8 files changed

+10
-11
lines changed

drivers/clk/samsung/clk-exynos4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1251,7 +1251,7 @@ static void __init exynos4_clk_init(struct device_node *np,
12511251
if (!reg_base)
12521252
panic("%s: failed to map registers\n", __func__);
12531253

1254-
ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS);
1254+
ctx = samsung_clk_init(reg_base, CLK_NR_CLKS);
12551255
hws = ctx->clk_data.hws;
12561256

12571257
samsung_clk_of_register_fixed_ext(ctx, exynos4_fixed_rate_ext_clks,

drivers/clk/samsung/clk-exynos4412-isp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static int __init exynos4x12_isp_clk_probe(struct platform_device *pdev)
121121
if (!exynos4x12_save_isp)
122122
return -ENOMEM;
123123

124-
ctx = samsung_clk_init(np, reg_base, CLK_NR_ISP_CLKS);
124+
ctx = samsung_clk_init(reg_base, CLK_NR_ISP_CLKS);
125125
ctx->dev = dev;
126126

127127
platform_set_drvdata(pdev, ctx);

drivers/clk/samsung/clk-exynos5250.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -797,7 +797,7 @@ static void __init exynos5250_clk_init(struct device_node *np)
797797
panic("%s: unable to determine soc\n", __func__);
798798
}
799799

800-
ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS);
800+
ctx = samsung_clk_init(reg_base, CLK_NR_CLKS);
801801
hws = ctx->clk_data.hws;
802802

803803
samsung_clk_of_register_fixed_ext(ctx, exynos5250_fixed_rate_ext_clks,

drivers/clk/samsung/clk-exynos5420.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1587,7 +1587,7 @@ static void __init exynos5x_clk_init(struct device_node *np,
15871587

15881588
exynos5x_soc = soc;
15891589

1590-
ctx = samsung_clk_init(np, reg_base, CLK_NR_CLKS);
1590+
ctx = samsung_clk_init(reg_base, CLK_NR_CLKS);
15911591
hws = ctx->clk_data.hws;
15921592

15931593
samsung_clk_of_register_fixed_ext(ctx, exynos5x_fixed_rate_ext_clks,

drivers/clk/samsung/clk-s3c64xx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ void __init s3c64xx_clk_init(struct device_node *np, unsigned long xtal_f,
405405
panic("%s: failed to map registers\n", __func__);
406406
}
407407

408-
ctx = samsung_clk_init(np, reg_base, NR_CLKS);
408+
ctx = samsung_clk_init(reg_base, NR_CLKS);
409409
hws = ctx->clk_data.hws;
410410

411411
/* Register external clocks. */

drivers/clk/samsung/clk-s5pv210.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ static void __init __s5pv210_clk_init(struct device_node *np,
743743
struct samsung_clk_provider *ctx;
744744
struct clk_hw **hws;
745745

746-
ctx = samsung_clk_init(np, reg_base, NR_CLKS);
746+
ctx = samsung_clk_init(reg_base, NR_CLKS);
747747
hws = ctx->clk_data.hws;
748748

749749
samsung_clk_register_mux(ctx, early_mux_clks,

drivers/clk/samsung/clk.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ struct samsung_clk_reg_dump *samsung_clk_alloc_reg_dump(
5454
}
5555

5656
/* setup the essentials required to support clock lookup using ccf */
57-
struct samsung_clk_provider *__init samsung_clk_init(struct device_node *np,
58-
void __iomem *base, unsigned long nr_clks)
57+
struct samsung_clk_provider * __init samsung_clk_init(void __iomem *base,
58+
unsigned long nr_clks)
5959
{
6060
struct samsung_clk_provider *ctx;
6161
int i;
@@ -341,7 +341,7 @@ struct samsung_clk_provider * __init samsung_cmu_register_one(
341341
return NULL;
342342
}
343343

344-
ctx = samsung_clk_init(np, reg_base, cmu->nr_clk_ids);
344+
ctx = samsung_clk_init(reg_base, cmu->nr_clk_ids);
345345

346346
if (cmu->pll_clks)
347347
samsung_clk_register_pll(ctx, cmu->pll_clks, cmu->nr_pll_clks,

drivers/clk/samsung/clk.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ struct samsung_cmu_info {
337337
const char *clk_name;
338338
};
339339

340-
struct samsung_clk_provider * samsung_clk_init(
341-
struct device_node *np, void __iomem *base,
340+
struct samsung_clk_provider *samsung_clk_init(void __iomem *base,
342341
unsigned long nr_clks);
343342
void samsung_clk_of_add_provider(struct device_node *np,
344343
struct samsung_clk_provider *ctx);

0 commit comments

Comments
 (0)