Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: OMAP2+: McBSP: Remove the old iclk allow/deny idle code

The new pdata callback (force_ick_on) is now used by the driver and the old
callback related code can be removed.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>

authored by

Peter Ujfalusi and committed by
Tony Lindgren
3774bec7 bbfa26c5

-19
-18
arch/arm/mach-omap2/mcbsp.c
··· 34 34 #include "cm3xxx.h" 35 35 #include "cm-regbits-34xx.h" 36 36 37 - static struct clk *mcbsp_iclks[5]; 38 - 39 - static int omap3_enable_st_clock(unsigned int id, bool enable) 40 - { 41 - /* 42 - * Sidetone uses McBSP ICLK - which must not idle when sidetones 43 - * are enabled or sidetones start sounding ugly. 44 - */ 45 - if (enable) 46 - return omap2_clk_deny_idle(mcbsp_iclks[id]); 47 - else 48 - return omap2_clk_allow_idle(mcbsp_iclks[id]); 49 - } 50 - 51 37 static int omap3_mcbsp_force_ick_on(struct clk *clk, bool force_on) 52 38 { 53 39 if (!clk) ··· 61 75 struct omap_hwmod *oh_device[2]; 62 76 struct omap_mcbsp_platform_data *pdata = NULL; 63 77 struct platform_device *pdev; 64 - char clk_name[11]; 65 78 66 79 sscanf(oh->name, "mcbsp%d", &id); 67 80 ··· 101 116 if (oh->dev_attr) { 102 117 oh_device[1] = omap_hwmod_lookup(( 103 118 (struct omap_mcbsp_dev_attr *)(oh->dev_attr))->sidetone); 104 - pdata->enable_st_clock = omap3_enable_st_clock; 105 119 pdata->force_ick_on = omap3_mcbsp_force_ick_on; 106 - sprintf(clk_name, "mcbsp%d_ick", id); 107 - mcbsp_iclks[id] = clk_get(NULL, clk_name); 108 120 count++; 109 121 } 110 122 pdev = omap_device_build_ss(name, id, oh_device, count, pdata,
-1
include/linux/platform_data/asoc-ti-mcbsp.h
··· 44 44 /* McBSP platform and instance specific features */ 45 45 bool has_wakeup; /* Wakeup capability */ 46 46 bool has_ccr; /* Transceiver has configuration control registers */ 47 - int (*enable_st_clock)(unsigned int, bool); 48 47 int (*force_ick_on)(struct clk *clk, bool force_on); 49 48 }; 50 49