From: Rajendra Nayak <rna...@ti.com> For all hwmods' with just one slave interface, use the slave->clk to add an 'ick' clkdev alias in the table. This is useful for drivers of such devices to get the interface clock using 'clk_get(dev, "ick")'
Signed-off-by: Rajendra Nayak <rna...@ti.com> --- arch/arm/plat-omap/omap_device.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/arch/arm/plat-omap/omap_device.c b/arch/arm/plat-omap/omap_device.c index d50cbc6..c8bc005 100644 --- a/arch/arm/plat-omap/omap_device.c +++ b/arch/arm/plat-omap/omap_device.c @@ -311,6 +311,9 @@ static void _add_hwmod_clocks_clkdev(struct omap_device *od, for (i = 0; i < oh->opt_clks_cnt; i++) _add_clkdev(od, oh->opt_clks[i].role, oh->opt_clks[i].clk); + + if (oh->slaves_cnt == 1) + _add_clkdev(od, "ick", oh->slaves[0]->clk); } -- 1.7.0.4 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html