Skip to content

Commit 12a5681

Browse files
committed
clk: renesas: mstp: Clarify cpg_mstp_{at,de}tach_dev() domain parameter
Make it clear that the "domain" parameter of the cpg_mstp_attach_dev() and cpg_mstp_detach_dev() functions is not used. The cpg_mstp_attach_dev() and cpg_mstp_detach_dev() callbacks are not only used by the CPG/MSTP Clock Domain driver, but also by the R-Mobile SYSC PM Domain driver. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
1 parent da437d2 commit 12a5681

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

‎drivers/clk/renesas/clk-mstp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
243243
}
244244
CLK_OF_DECLARE(cpg_mstp_clks, "renesas,cpg-mstp-clocks", cpg_mstp_clocks_init);
245245

246-
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev)
246+
int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev)
247247
{
248248
struct device_node *np = dev->of_node;
249249
struct of_phandle_args clkspec;
@@ -295,7 +295,7 @@ int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev)
295295
return error;
296296
}
297297

298-
void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev)
298+
void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev)
299299
{
300300
if (!list_empty(&dev->power.subsys_data->clock_list))
301301
pm_clk_destroy(dev);

‎include/linux/clk/renesas.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ void r8a7779_clocks_init(u32 mode);
2525
void rcar_gen2_clocks_init(u32 mode);
2626

2727
void cpg_mstp_add_clk_domain(struct device_node *np);
28-
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev);
29-
void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev);
28+
int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
29+
void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
3030

3131
#endif

0 commit comments

Comments
 (0)