summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/rt711-sdca.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-06-22 13:14:20 +0200
committerMark Brown <broonie@kernel.org>2022-06-22 13:14:20 +0200
commit644ed467c773ae7649cb54c9709aabc6f2984850 (patch)
tree5c4b6670569b70852ed940b590e0e83d32d7c031 /sound/soc/codecs/rt711-sdca.c
parentASoC: core: Add new SOC_DOUBLE_SX_TLV macro (diff)
parentASoC: rt711-sdca: fix kernel NULL pointer dereference when IO error (diff)
downloadlinux-644ed467c773ae7649cb54c9709aabc6f2984850.tar.xz
linux-644ed467c773ae7649cb54c9709aabc6f2984850.zip
ASoC: Merge fixes
Needed for new development.
Diffstat (limited to 'sound/soc/codecs/rt711-sdca.c')
-rw-r--r--sound/soc/codecs/rt711-sdca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/rt711-sdca.c b/sound/soc/codecs/rt711-sdca.c
index 9d226b1cb7e9..925268121901 100644
--- a/sound/soc/codecs/rt711-sdca.c
+++ b/sound/soc/codecs/rt711-sdca.c
@@ -34,7 +34,7 @@ static int rt711_sdca_index_write(struct rt711_sdca_priv *rt711,
ret = regmap_write(regmap, addr, value);
if (ret < 0)
- dev_err(rt711->component->dev,
+ dev_err(&rt711->slave->dev,
"Failed to set private value: %06x <= %04x ret=%d\n",
addr, value, ret);
@@ -50,7 +50,7 @@ static int rt711_sdca_index_read(struct rt711_sdca_priv *rt711,
ret = regmap_read(regmap, addr, value);
if (ret < 0)
- dev_err(rt711->component->dev,
+ dev_err(&rt711->slave->dev,
"Failed to get private value: %06x => %04x ret=%d\n",
addr, *value, ret);