diff mbox

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

Message ID 1412608463.4950.7.camel@phoenix (mailing list archive)
State Accepted
Commit fd587e320041d42eb21d12bb62da9e8ac08fd6c2
Headers show

Commit Message

Axel Lin Oct. 6, 2014, 3:14 p.m. UTC
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/cs4265.c | 2 --
 1 file changed, 2 deletions(-)

Comments

Paul Handrigan Oct. 6, 2014, 3:23 p.m. UTC | #1
On Mon, 6 Oct 2014, Axel Lin wrote:

> Signed-off-by: Axel Lin <axel.lin@ingics.com>
> ---
> sound/soc/codecs/cs4265.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
> index 4fdd47d..ce60868 100644
> --- a/sound/soc/codecs/cs4265.c
> +++ b/sound/soc/codecs/cs4265.c
> @@ -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)) {
> -- 
> 1.9.1
Thanks!

Signed-off-by: Paul Handrigan <paul.handrigan@cirrus.com>
Mark Brown Oct. 6, 2014, 5:33 p.m. UTC | #2
On Mon, Oct 06, 2014 at 11:14:23PM +0800, Axel Lin wrote:
> Signed-off-by: Axel Lin <axel.lin@ingics.com>

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c
index 4fdd47d..ce60868 100644
--- a/sound/soc/codecs/cs4265.c
+++ b/sound/soc/codecs/cs4265.c
@@ -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)) {