diff options
author | Takashi Iwai <tiwai@suse.de> | 2009-06-04 03:58:18 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-06-04 04:01:11 -0400 |
commit | d08664fdb50795b29cf70b0269ea02f7248e76c3 (patch) | |
tree | ab3226a21bea529d75a589eece63a5f9bb803da9 /sound/soc/codecs/twl4030.c | |
parent | f692fce0cf8625b6cc8678e802fb0e2e657b1ca6 (diff) |
ASoC: Fix build error in twl4030.c
Fix the (likely cut-n-paste) error by commit
16a30fbb0d3aa4ee829a2dd3d0e314e2b5ae96a9, which causes the error below:
sound/soc/codecs/twl4030.c: In function 'twl4030_read_reg_cache':
sound/soc/codecs/twl4030.c:152: error: 'cache' undeclared (first use in this function)
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/twl4030.c')
-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; |