ASoC: Fix build error in twl4030.c

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, June 12, 2009 - 12:01 pm

Gitweb:     http://git.kernel.org/linus/d08664fdb50795b29cf70b0269ea02f7248e76c3
Commit:     d08664fdb50795b29cf70b0269ea02f7248e76c3
Parent:     f692fce0cf8625b6cc8678e802fb0e2e657b1ca6
Author:     Takashi Iwai <tiwai@suse.de>
AuthorDate: Thu Jun 4 09:58:18 2009 +0200
Committer:  Takashi Iwai <tiwai@suse.de>
CommitDate: Thu Jun 4 10:01:11 2009 +0200

    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>
---
 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 c53c7ca..4dbb853 100644
--- a/sound/soc/codecs/twl4030.c
+++ b/sound/soc/codecs/twl4030.c
@@ -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;
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ASoC: Fix build error in twl4030.c, Linux Kernel Mailing ..., (Fri Jun 12, 12:01 pm)