Skip to content

Commit

Permalink
ASoC: Fix build error in twl4030.c
Browse files Browse the repository at this point in the history
Fix the (likely cut-n-paste) error by commit
16a30fb, 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>
  • Loading branch information
Takashi Iwai committed Jun 4, 2009
1 parent f692fce commit d08664f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sound/soc/codecs/twl4030.c
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ struct twl4030_priv {
static inline unsigned int twl4030_read_reg_cache(struct snd_soc_codec *codec,
unsigned int reg)
{
u8 *cache = codec->reg_cache;

if (reg >= TWL4030_CACHEREGNUM)
return -EIO;
Expand Down

0 comments on commit d08664f

Please sign in to comment.