Skip to contentSkip to conversation

ASoC: cs4265: Remove unused *dev field from struct cs4265_private

PATCH Applied Axel Lin 3 participants 3 messages Oct 6, 2014

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: cs4265: Remove unused *dev field from struct cs4265_private

---
 sound/soc/codecs/cs4265.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/cs4265.c +0 -2
index 4fdd47d..ce60868 100644
@@ -32,7 +32,6 @@
 #include "cs4265.h"
 
 struct cs4265_private {
-	struct device *dev;
 	struct regmap *regmap;
 	struct gpio_desc *reset_gpio;
 	u8 format;
@@ -598,7 +597,6 @@ static int cs4265_i2c_probe(struct i2c_client *i2c_client,
 			       GFP_KERNEL);
 	if (cs4265 == NULL)
 		return -ENOMEM;
-	cs4265->dev = &i2c_client->dev;
 
 	cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap);
 	if (IS_ERR(cs4265->regmap)) {
Signature · 1 line
1.9.1
#1 lore raw
Quoted 27 lines · Axel Lin

---
sound/soc/codecs/cs4265.c | 2 --

1 file changed, 2 deletions(-)
sound/soc/codecs/cs4265.c +0 -2
index 4fdd47d..ce60868 100644
@@ -32,7 +32,6 @@
 #include "cs4265.h"
 
 struct cs4265_private {
-	struct device *dev;
 	struct regmap *regmap;
 	struct gpio_desc *reset_gpio;
 	u8 format;
@@ -598,7 +597,6 @@ static int cs4265_i2c_probe(struct i2c_client *i2c_client,
 			       GFP_KERNEL);
 	if (cs4265 == NULL)
 		return -ENOMEM;
-	cs4265->dev = &i2c_client->dev;
 
 	cs4265->regmap = devm_regmap_init_i2c(i2c_client, &cs4265_regmap);
 	if (IS_ERR(cs4265->regmap)) {
Signature · 1 line
1.9.1

Thanks!