diff options
Diffstat (limited to 'sound/soc/codecs/wm8350.c')
-rw-r--r-- | sound/soc/codecs/wm8350.c | 32 |
1 files changed, 2 insertions, 30 deletions
diff --git a/sound/soc/codecs/wm8350.c b/sound/soc/codecs/wm8350.c index 593d5b9c9f03..f82125d9e85a 100644 --- a/sound/soc/codecs/wm8350.c +++ b/sound/soc/codecs/wm8350.c | |||
@@ -800,7 +800,7 @@ static int wm8350_add_widgets(struct snd_soc_codec *codec) | |||
800 | return ret; | 800 | return ret; |
801 | } | 801 | } |
802 | 802 | ||
803 | return snd_soc_dapm_new_widgets(codec); | 803 | return 0; |
804 | } | 804 | } |
805 | 805 | ||
806 | static int wm8350_set_dai_sysclk(struct snd_soc_dai *codec_dai, | 806 | static int wm8350_set_dai_sysclk(struct snd_soc_dai *codec_dai, |
@@ -1101,7 +1101,7 @@ static inline int fll_factors(struct _fll_div *fll_div, unsigned int input, | |||
1101 | } | 1101 | } |
1102 | 1102 | ||
1103 | static int wm8350_set_fll(struct snd_soc_dai *codec_dai, | 1103 | static int wm8350_set_fll(struct snd_soc_dai *codec_dai, |
1104 | int pll_id, unsigned int freq_in, | 1104 | int pll_id, int source, unsigned int freq_in, |
1105 | unsigned int freq_out) | 1105 | unsigned int freq_out) |
1106 | { | 1106 | { |
1107 | struct snd_soc_codec *codec = codec_dai->codec; | 1107 | struct snd_soc_codec *codec = codec_dai->codec; |
@@ -1501,18 +1501,7 @@ static int wm8350_probe(struct platform_device *pdev) | |||
1501 | 1501 | ||
1502 | wm8350_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 1502 | wm8350_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
1503 | 1503 | ||
1504 | ret = snd_soc_init_card(socdev); | ||
1505 | if (ret < 0) { | ||
1506 | dev_err(&pdev->dev, "failed to register card\n"); | ||
1507 | goto card_err; | ||
1508 | } | ||
1509 | |||
1510 | return 0; | 1504 | return 0; |
1511 | |||
1512 | card_err: | ||
1513 | snd_soc_free_pcms(socdev); | ||
1514 | snd_soc_dapm_free(socdev); | ||
1515 | return ret; | ||
1516 | } | 1505 | } |
1517 | 1506 | ||
1518 | static int wm8350_remove(struct platform_device *pdev) | 1507 | static int wm8350_remove(struct platform_device *pdev) |
@@ -1680,21 +1669,6 @@ static int __devexit wm8350_codec_remove(struct platform_device *pdev) | |||
1680 | return 0; | 1669 | return 0; |
1681 | } | 1670 | } |
1682 | 1671 | ||
1683 | #ifdef CONFIG_PM | ||
1684 | static int wm8350_codec_suspend(struct platform_device *pdev, pm_message_t m) | ||
1685 | { | ||
1686 | return snd_soc_suspend_device(&pdev->dev); | ||
1687 | } | ||
1688 | |||
1689 | static int wm8350_codec_resume(struct platform_device *pdev) | ||
1690 | { | ||
1691 | return snd_soc_resume_device(&pdev->dev); | ||
1692 | } | ||
1693 | #else | ||
1694 | #define wm8350_codec_suspend NULL | ||
1695 | #define wm8350_codec_resume NULL | ||
1696 | #endif | ||
1697 | |||
1698 | static struct platform_driver wm8350_codec_driver = { | 1672 | static struct platform_driver wm8350_codec_driver = { |
1699 | .driver = { | 1673 | .driver = { |
1700 | .name = "wm8350-codec", | 1674 | .name = "wm8350-codec", |
@@ -1702,8 +1676,6 @@ static struct platform_driver wm8350_codec_driver = { | |||
1702 | }, | 1676 | }, |
1703 | .probe = wm8350_codec_probe, | 1677 | .probe = wm8350_codec_probe, |
1704 | .remove = __devexit_p(wm8350_codec_remove), | 1678 | .remove = __devexit_p(wm8350_codec_remove), |
1705 | .suspend = wm8350_codec_suspend, | ||
1706 | .resume = wm8350_codec_resume, | ||
1707 | }; | 1679 | }; |
1708 | 1680 | ||
1709 | static __init int wm8350_init(void) | 1681 | static __init int wm8350_init(void) |