projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc0195a
)
ASoC: sta529: Remove redundant I2C_FUNC_SMBUS_BYTE_DATA functionality check
author
Axel Lin
<axel.lin@ingics.com>
Fri, 24 Jul 2015 03:17:28 +0000
(11:17 +0800)
committer
Mark Brown
<broonie@kernel.org>
Fri, 24 Jul 2015 10:35:28 +0000
(11:35 +0100)
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>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/sta529.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/codecs/sta529.c
b/sound/soc/codecs/sta529.c
index 4f70378b2cfb4095321f6793dd7d0277851c2ef0..2519c7f1cad3d4908adfaf67706f19252c1ea7ac 100644
(file)
--- 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;