diff mbox

ASoC: sta529: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check

Message ID 1437707848.12634.2.camel@ingics.com (mailing list archive)
State Accepted
Commit 97a747117d95b54fe3ce21d43e04499a1671fff6
Headers show

Commit Message

Axel Lin July 24, 2015, 3:17 a.m. UTC
This checking is done by regmap_get_i2c_bus() which is called in
devm_regmap_init_i2c().

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/codecs/sta529.c | 3 ---
 1 file changed, 3 deletions(-)
diff mbox

Patch

diff --git a/sound/soc/codecs/sta529.c b/sound/soc/codecs/sta529.c
index 3430f44..2cdaca9 100644
--- a/sound/soc/codecs/sta529.c
+++ b/sound/soc/codecs/sta529.c
@@ -339,9 +339,6 @@  static int sta529_i2c_probe(struct i2c_client *i2c,
 	struct sta529 *sta529;
 	int ret;
 
-	if (!i2c_check_functionality(i2c->adapter, I2C_FUNC_SMBUS_BYTE_DATA))
-		return -EINVAL;
-
 	sta529 = devm_kzalloc(&i2c->dev, sizeof(struct sta529), GFP_KERNEL);
 	if (!sta529)
 		return -ENOMEM;