summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt700-sdw.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2020-09-17 17:35:38 +0200
committerMark Brown <broonie@kernel.org>2020-09-17 17:35:38 +0200
commit4db68e62a0b912655c598de829b05b2383da0cab (patch)
tree14c717646e8de62283aaa9c08b747e8db3871dbd /sound/soc/codecs/rt700-sdw.c
parentMerge series "ASoC: SOF: DSP core management fixes for 5.10" from Kai Vehmane... (diff)
parentASoC: tlv320adcx140: Fix BCLK inversion for DSP modes (diff)
downloadlinux-4db68e62a0b912655c598de829b05b2383da0cab.tar.xz
linux-4db68e62a0b912655c598de829b05b2383da0cab.zip
Merge branch 'asoc-5.9' into asoc-5.10
Diffstat (limited to 'sound/soc/codecs/rt700-sdw.c')
-rw-r--r--sound/soc/codecs/rt700-sdw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt700-sdw.c b/sound/soc/codecs/rt700-sdw.c
index 5430941cb2da..ead4918bbf90 100644
--- a/sound/soc/codecs/rt700-sdw.c
+++ b/sound/soc/codecs/rt700-sdw.c
@@ -452,8 +452,8 @@ static int rt700_sdw_probe(struct sdw_slave *slave,
/* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt700_sdw_regmap);
- if (!sdw_regmap)
- return -EINVAL;
+ if (IS_ERR(sdw_regmap))
+ return PTR_ERR(sdw_regmap);
regmap = devm_regmap_init(&slave->dev, NULL,
&slave->dev, &rt700_regmap);