diff options
Diffstat (limited to 'sound/soc/codecs/sta32x.c')
-rw-r--r-- | sound/soc/codecs/sta32x.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sound/soc/codecs/sta32x.c b/sound/soc/codecs/sta32x.c index 2735361a4c3c..12577749b17b 100644 --- a/sound/soc/codecs/sta32x.c +++ b/sound/soc/codecs/sta32x.c | |||
@@ -872,16 +872,6 @@ static int sta32x_probe(struct snd_soc_codec *codec) | |||
872 | return ret; | 872 | return ret; |
873 | } | 873 | } |
874 | 874 | ||
875 | /* Tell ASoC what kind of I/O to use to read the registers. ASoC will | ||
876 | * then do the I2C transactions itself. | ||
877 | */ | ||
878 | codec->control_data = sta32x->regmap; | ||
879 | ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_REGMAP); | ||
880 | if (ret < 0) { | ||
881 | dev_err(codec->dev, "failed to set cache I/O (ret=%i)\n", ret); | ||
882 | goto err; | ||
883 | } | ||
884 | |||
885 | /* Chip documentation explicitly requires that the reset values | 875 | /* Chip documentation explicitly requires that the reset values |
886 | * of reserved register bits are left untouched. | 876 | * of reserved register bits are left untouched. |
887 | * Write the register default value to cache for reserved registers, | 877 | * Write the register default value to cache for reserved registers, |
@@ -946,10 +936,6 @@ static int sta32x_probe(struct snd_soc_codec *codec) | |||
946 | regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); | 936 | regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); |
947 | 937 | ||
948 | return 0; | 938 | return 0; |
949 | |||
950 | err: | ||
951 | regulator_bulk_disable(ARRAY_SIZE(sta32x->supplies), sta32x->supplies); | ||
952 | return ret; | ||
953 | } | 939 | } |
954 | 940 | ||
955 | static int sta32x_remove(struct snd_soc_codec *codec) | 941 | static int sta32x_remove(struct snd_soc_codec *codec) |