mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-21 14:11:20 +00:00
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>
This commit is contained in:
parent
da437d2d09
commit
12a56817b3
2 changed files with 4 additions and 4 deletions
|
@ -243,7 +243,7 @@ static void __init cpg_mstp_clocks_init(struct device_node *np)
|
||||||
}
|
}
|
||||||
CLK_OF_DECLARE(cpg_mstp_clks, "renesas,cpg-mstp-clocks", cpg_mstp_clocks_init);
|
CLK_OF_DECLARE(cpg_mstp_clks, "renesas,cpg-mstp-clocks", cpg_mstp_clocks_init);
|
||||||
|
|
||||||
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev)
|
int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev)
|
||||||
{
|
{
|
||||||
struct device_node *np = dev->of_node;
|
struct device_node *np = dev->of_node;
|
||||||
struct of_phandle_args clkspec;
|
struct of_phandle_args clkspec;
|
||||||
|
@ -295,7 +295,7 @@ fail_put:
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev)
|
void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev)
|
||||||
{
|
{
|
||||||
if (!list_empty(&dev->power.subsys_data->clock_list))
|
if (!list_empty(&dev->power.subsys_data->clock_list))
|
||||||
pm_clk_destroy(dev);
|
pm_clk_destroy(dev);
|
||||||
|
|
|
@ -25,7 +25,7 @@ void r8a7779_clocks_init(u32 mode);
|
||||||
void rcar_gen2_clocks_init(u32 mode);
|
void rcar_gen2_clocks_init(u32 mode);
|
||||||
|
|
||||||
void cpg_mstp_add_clk_domain(struct device_node *np);
|
void cpg_mstp_add_clk_domain(struct device_node *np);
|
||||||
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev);
|
int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
|
||||||
void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev);
|
void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue