From: Lars-Peter Clausen Date: Fri, 14 Mar 2014 08:33:36 +0000 (+0100) Subject: ASoC: max98090: Remove unused control_data field X-Git-Tag: accepted/tizen/common/20141203.182822~239^2~1^2~1^9~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e585ca342dbbfe7102985d9ed4eae3f9e1d77ced;p=platform%2Fkernel%2Flinux-arm64.git ASoC: max98090: Remove unused control_data field The driver assigns a value to the control_data field of the driver's state struct, but never reads it again. Which means it is unused and can be removed. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/max98090.c b/sound/soc/codecs/max98090.c index c7b9e90..361862d 100644 --- a/sound/soc/codecs/max98090.c +++ b/sound/soc/codecs/max98090.c @@ -2350,7 +2350,6 @@ static int max98090_i2c_probe(struct i2c_client *i2c, max98090->devtype = id->driver_data; i2c_set_clientdata(i2c, max98090); - max98090->control_data = i2c; max98090->pdata = i2c->dev.platform_data; max98090->irq = i2c->irq; diff --git a/sound/soc/codecs/max98090.h b/sound/soc/codecs/max98090.h index 7e103f2..1a4e233 100644 --- a/sound/soc/codecs/max98090.h +++ b/sound/soc/codecs/max98090.h @@ -1523,7 +1523,6 @@ struct max98090_priv { struct regmap *regmap; struct snd_soc_codec *codec; enum max98090_type devtype; - void *control_data; struct max98090_pdata *pdata; unsigned int sysclk; unsigned int bclk;