aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeert Uytterhoeven <geert+renesas@glider.be>2016-04-13 05:18:06 -0400
committerGeert Uytterhoeven <geert+renesas@glider.be>2016-04-20 03:17:04 -0400
commit12524e348bcb2189a8cf43829e90256f7e7d4f3d (patch)
tree7e9721953ff7aab35b3eb9077356edba3e089571
parenta5bd7f7a726c97698dacb062e4635da13e5ea8c4 (diff)
clk: renesas: mstp: Provide dummy attach/detach_dev callbacks
Provide dummy cpg_mstp_{at,de}tach_dev() PM Domain callbacks if CPG/MSTP support is not included, so the rcar-sysc driver won't have to care about this. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
-rw-r--r--include/linux/clk/renesas.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/clk/renesas.h b/include/linux/clk/renesas.h
index 095b1681daf4..ab57a298a374 100644
--- a/include/linux/clk/renesas.h
+++ b/include/linux/clk/renesas.h
@@ -25,7 +25,12 @@ void r8a7779_clocks_init(u32 mode);
25void rcar_gen2_clocks_init(u32 mode); 25void rcar_gen2_clocks_init(u32 mode);
26 26
27void cpg_mstp_add_clk_domain(struct device_node *np); 27void cpg_mstp_add_clk_domain(struct device_node *np);
28#ifdef CONFIG_CLK_RENESAS_CPG_MSTP
28int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev); 29int cpg_mstp_attach_dev(struct generic_pm_domain *unused, struct device *dev);
29void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev); 30void cpg_mstp_detach_dev(struct generic_pm_domain *unused, struct device *dev);
31#else
32#define cpg_mstp_attach_dev NULL
33#define cpg_mstp_detach_dev NULL
34#endif
30 35
31#endif 36#endif