diff options
Diffstat (limited to 'sound/soc/codecs/cs4265.c')
| -rw-r--r-- | sound/soc/codecs/cs4265.c | 15 | 
1 files changed, 13 insertions, 2 deletions
| diff --git a/sound/soc/codecs/cs4265.c b/sound/soc/codecs/cs4265.c index cffd6111afac..4aaee1873a11 100644 --- a/sound/soc/codecs/cs4265.c +++ b/sound/soc/codecs/cs4265.c @@ -611,8 +611,8 @@ static int cs4265_i2c_probe(struct i2c_client *i2c_client,  	if (devid != CS4265_CHIP_ID_VAL) {  		ret = -ENODEV;  		dev_err(&i2c_client->dev, -			"CS4265 Device ID (%X). Expected %X\n", -			devid, CS4265_CHIP_ID); +			"CS4265 Part Number ID: 0x%x Expected: 0x%x\n", +			devid >> 4, CS4265_CHIP_ID_VAL >> 4);  		return ret;  	}  	dev_info(&i2c_client->dev, @@ -626,6 +626,16 @@ static int cs4265_i2c_probe(struct i2c_client *i2c_client,  			ARRAY_SIZE(cs4265_dai));  } +static int cs4265_i2c_remove(struct i2c_client *i2c) +{ +	struct cs4265_private *cs4265 = i2c_get_clientdata(i2c); + +	if (cs4265->reset_gpio) +		gpiod_set_value_cansleep(cs4265->reset_gpio, 0); + +	return 0; +} +  static const struct of_device_id cs4265_of_match[] = {  	{ .compatible = "cirrus,cs4265", },  	{ } @@ -645,6 +655,7 @@ static struct i2c_driver cs4265_i2c_driver = {  	},  	.id_table = cs4265_id,  	.probe =    cs4265_i2c_probe, +	.remove =   cs4265_i2c_remove,  };  module_i2c_driver(cs4265_i2c_driver); |