diff options
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r-- | sound/soc/sh/fsi.c | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index 8869971d7884..b87b22e88e43 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -820,12 +820,9 @@ static int fsi_clk_enable(struct device *dev, | |||
820 | return ret; | 820 | return ret; |
821 | } | 821 | } |
822 | 822 | ||
823 | if (clock->xck) | 823 | clk_enable(clock->xck); |
824 | clk_enable(clock->xck); | 824 | clk_enable(clock->ick); |
825 | if (clock->ick) | 825 | clk_enable(clock->div); |
826 | clk_enable(clock->ick); | ||
827 | if (clock->div) | ||
828 | clk_enable(clock->div); | ||
829 | 826 | ||
830 | clock->count++; | 827 | clock->count++; |
831 | } | 828 | } |
@@ -1765,11 +1762,6 @@ static struct snd_pcm_ops fsi_pcm_ops = { | |||
1765 | #define PREALLOC_BUFFER (32 * 1024) | 1762 | #define PREALLOC_BUFFER (32 * 1024) |
1766 | #define PREALLOC_BUFFER_MAX (32 * 1024) | 1763 | #define PREALLOC_BUFFER_MAX (32 * 1024) |
1767 | 1764 | ||
1768 | static void fsi_pcm_free(struct snd_pcm *pcm) | ||
1769 | { | ||
1770 | snd_pcm_lib_preallocate_free_for_all(pcm); | ||
1771 | } | ||
1772 | |||
1773 | static int fsi_pcm_new(struct snd_soc_pcm_runtime *rtd) | 1765 | static int fsi_pcm_new(struct snd_soc_pcm_runtime *rtd) |
1774 | { | 1766 | { |
1775 | return snd_pcm_lib_preallocate_pages_for_all( | 1767 | return snd_pcm_lib_preallocate_pages_for_all( |
@@ -1821,7 +1813,6 @@ static struct snd_soc_dai_driver fsi_soc_dai[] = { | |||
1821 | static struct snd_soc_platform_driver fsi_soc_platform = { | 1813 | static struct snd_soc_platform_driver fsi_soc_platform = { |
1822 | .ops = &fsi_pcm_ops, | 1814 | .ops = &fsi_pcm_ops, |
1823 | .pcm_new = fsi_pcm_new, | 1815 | .pcm_new = fsi_pcm_new, |
1824 | .pcm_free = fsi_pcm_free, | ||
1825 | }; | 1816 | }; |
1826 | 1817 | ||
1827 | static const struct snd_soc_component_driver fsi_soc_component = { | 1818 | static const struct snd_soc_component_driver fsi_soc_component = { |