aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/omap_hwmod.c
diff options
context:
space:
mode:
authorTony Lindgren <tony@atomide.com>2012-07-06 03:58:43 -0400
committerTony Lindgren <tony@atomide.com>2012-07-06 03:58:43 -0400
commit68c9a95e9253ce1776bd21bf8d37ddf213cced66 (patch)
tree286f516466c6c4ceaa404dfb97edbd4a393451f9 /arch/arm/mach-omap2/omap_hwmod.c
parentecc46cfdad7499a21296f0757059c4965f1fbc98 (diff)
ARM: OMAP2+: Fix mismerge for omap_hwmod_get_main_clk() API
Commit ac5b0ea3d (Merge tag 'omap-devel-f-for-3.6'...) had a merge conflict that somehow got incorrecly resolved in a lossy way for commit bed9d1bb (ARM: OMAP2+: hwmod: add omap_hwmod_get_main_clk() API). Fix the issue by applying the missing pieces. Reported-by: Santosh Shilimkar <santosh.shilimkar@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/omap_hwmod.c')
-rw-r--r--arch/arm/mach-omap2/omap_hwmod.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/omap_hwmod.c b/arch/arm/mach-omap2/omap_hwmod.c
index ebdf0016e536..ff76ef1d7232 100644
--- a/arch/arm/mach-omap2/omap_hwmod.c
+++ b/arch/arm/mach-omap2/omap_hwmod.c
@@ -3633,3 +3633,18 @@ void __init omap_hwmod_init(void)
3633 3633
3634 inited = true; 3634 inited = true;
3635} 3635}
3636
3637/**
3638 * omap_hwmod_get_main_clk - get pointer to main clock name
3639 * @oh: struct omap_hwmod *
3640 *
3641 * Returns the main clock name assocated with @oh upon success,
3642 * or NULL if @oh is NULL.
3643 */
3644const char *omap_hwmod_get_main_clk(struct omap_hwmod *oh)
3645{
3646 if (!oh)
3647 return NULL;
3648
3649 return oh->main_clk;
3650}