diff options
-rw-r--r-- | sound/soc/codecs/twl4030.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/codecs/twl4030.c b/sound/soc/codecs/twl4030.c index c53c7cabbd27..4dbb853eef5a 100644 --- a/sound/soc/codecs/twl4030.c +++ b/sound/soc/codecs/twl4030.c | |||
@@ -145,6 +145,7 @@ struct twl4030_priv { | |||
145 | static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec, | 145 | static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec, |
146 | unsigned int reg) | 146 | unsigned int reg) |
147 | { | 147 | { |
148 | u8 *cache = codec->reg_cache; | ||
148 | 149 | ||
149 | if (reg >= TWL4030_CACHEREGNUM) | 150 | if (reg >= TWL4030_CACHEREGNUM) |
150 | return -EIO; | 151 | return -EIO; |