Skip to content

Commit 848fc67

Browse files
committed
clk: renesas: mstp: Drop check for CONFIG_PM_GENERIC_DOMAINS_OF
As of commit 71d076c ("ARM: shmobile: Enable PM and PM_GENERIC_DOMAINS for SoCs with PM Domains"), CONFIG_PM_GENERIC_DOMAINS_OF is always enabled for SoCs with MSTP clocks. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
1 parent 6248620 commit 848fc67

2 files changed

Lines changed: 0 additions & 7 deletions

File tree

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -243,8 +243,6 @@ 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-
247-
#ifdef CONFIG_PM_GENERIC_DOMAINS_OF
248246
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev)
249247
{
250248
struct device_node *np = dev->of_node;
@@ -326,4 +324,3 @@ void __init cpg_mstp_add_clk_domain(struct device_node *np)
326324

327325
of_genpd_add_provider_simple(np, pd);
328326
}
329-
#endif /* !CONFIG_PM_GENERIC_DOMAINS_OF */

‎include/linux/clk/renesas.h‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,8 @@ void r8a7778_clocks_init(u32 mode);
2424
void r8a7779_clocks_init(u32 mode);
2525
void rcar_gen2_clocks_init(u32 mode);
2626

27-
#ifdef CONFIG_PM_GENERIC_DOMAINS_OF
2827
void cpg_mstp_add_clk_domain(struct device_node *np);
2928
int cpg_mstp_attach_dev(struct generic_pm_domain *domain, struct device *dev);
3029
void cpg_mstp_detach_dev(struct generic_pm_domain *domain, struct device *dev);
31-
#else
32-
static inline void cpg_mstp_add_clk_domain(struct device_node *np) {}
33-
#endif
3430

3531
#endif

0 commit comments

Comments
 (0)