diff options
author | Mark Brown <broonie@linaro.org> | 2014-03-13 10:19:21 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-03-13 10:19:21 -0400 |
commit | 2620954d64f6f067b785faf03738b637f3473ca7 (patch) | |
tree | 00c5281e4acabc56ac1cd215a63963d956b09879 /sound/soc/codecs/wm8903.c | |
parent | 8b3272bffe58682de568e36f9db52495f9b9d0f2 (diff) | |
parent | a32c17b87c17f5e2e68edcf4d163ee42f9490652 (diff) |
Merge remote-tracking branch 'asoc/topic/io' into asoc-next
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r-- | sound/soc/codecs/wm8903.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index b82b70a3b3d3..b0084a127d18 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c | |||
@@ -1897,21 +1897,13 @@ static void wm8903_free_gpio(struct wm8903_priv *wm8903) | |||
1897 | static int wm8903_probe(struct snd_soc_codec *codec) | 1897 | static int wm8903_probe(struct snd_soc_codec *codec) |
1898 | { | 1898 | { |
1899 | struct wm8903_priv *wm8903 = snd_soc_codec_get_drvdata(codec); | 1899 | struct wm8903_priv *wm8903 = snd_soc_codec_get_drvdata(codec); |
1900 | int ret; | ||
1901 | 1900 | ||
1902 | wm8903->codec = codec; | 1901 | wm8903->codec = codec; |
1903 | codec->control_data = wm8903->regmap; | ||
1904 | |||
1905 | ret = snd_soc_codec_set_cache_io(codec, 8, 16, SND_SOC_REGMAP); | ||
1906 | if (ret != 0) { | ||
1907 | dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret); | ||
1908 | return ret; | ||
1909 | } | ||
1910 | 1902 | ||
1911 | /* power on device */ | 1903 | /* power on device */ |
1912 | wm8903_set_bias_level(codec, SND_SOC_BIAS_STANDBY); | 1904 | wm8903_set_bias_level(codec, SND_SOC_BIAS_STANDBY); |
1913 | 1905 | ||
1914 | return ret; | 1906 | return 0; |
1915 | } | 1907 | } |
1916 | 1908 | ||
1917 | /* power down chip */ | 1909 | /* power down chip */ |