]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Don't overwrite .poweroff in snd_soc_pm_ops
authorViresh Kumar <viresh.kumar@st.com>
Fri, 24 Feb 2012 10:55:49 +0000 (16:25 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 24 Feb 2012 14:46:26 +0000 (14:46 +0000)
commit8cd06f44e13da2e2cac025e241ab8863e179ed20
tree2590c79637a2f949cebaac64f24a2358af3e9d24
parenta56f022de6c00f59ce77605485cc9471c89102d7
ASoC: core: Don't overwrite .poweroff in snd_soc_pm_ops

SET_SYSTEM_SLEEP_PM_OPS writes .poweroff = *_resume once. Then we overwrite it
again explicitly as .poweroff = snd_soc_poweroff. Even though it works, as the
second one overwrites the first one, this is not the correct way. Fix this by
expanding SET_SYSTEM_SLEEP_PM_OPS in our structure.

Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-core.c