aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorJonas Bonn <jonas.bonn@gmail.com>2008-11-19 17:10:56 +0000
committerAndy Green <agreen@pads.home.warmcat.com>2008-11-19 17:10:56 +0000
commitde1aca9d30c29b60094295919e36382fb0596358 (patch)
tree937979ed108017a28b616187ff2fee057d9a71d7 /sound
parent32fb94aba3cab6a6169ad77dca4d09f003da8156 (diff)
ALSA: Keep reference to lm4857 i2c_client for write_regs
The function lm4857_write_regs requires that the i2c_client be available in the local variable 'i2c'. Signed-off-by: Jonas Bonn <jonas.bonn@gmail.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/s3c24xx/neo1973_wm8753.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/s3c24xx/neo1973_wm8753.c b/sound/soc/s3c24xx/neo1973_wm8753.c
index 683cdb7d3da..5cbbe988e1f 100644
--- a/sound/soc/s3c24xx/neo1973_wm8753.c
+++ b/sound/soc/s3c24xx/neo1973_wm8753.c
@@ -602,6 +602,8 @@ static int lm4857_i2c_probe(struct i2c_client *client,
{
DBG("Entered %s\n", __func__);
+ i2c = client;
+
lm4857_write_regs();
return 0;
}
@@ -610,6 +612,8 @@ static int lm4857_i2c_remove(struct i2c_client *client)
{
DBG("Entered %s\n", __func__);
+ i2c = NULL;
+
return 0;
}