From de1aca9d30c29b60094295919e36382fb0596358 Mon Sep 17 00:00:00 2001 From: Jonas Bonn Date: Wed, 19 Nov 2008 17:10:56 +0000 Subject: 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 --- sound/soc/s3c24xx/neo1973_wm8753.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sound') 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; } -- cgit v1.2.3