summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt1308-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/rt1308-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/rt1308-sdw.c')
-rw-r--r--sound/soc/codecs/rt1308-sdw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt1308-sdw.c b/sound/soc/codecs/rt1308-sdw.c
index 6a2318e04bb7..b288e1a7d956 100644
--- a/sound/soc/codecs/rt1308-sdw.c
+++ b/sound/soc/codecs/rt1308-sdw.c
@@ -684,8 +684,8 @@ static int rt1308_sdw_probe(struct sdw_slave *slave,
/* Regmap Initialization */
regmap = devm_regmap_init_sdw(slave, &rt1308_sdw_regmap);
- if (!regmap)
- return -EINVAL;
+ if (IS_ERR(regmap))
+ return PTR_ERR(regmap);
rt1308_sdw_init(&slave->dev, regmap, slave);