Skip to content

Commit

Permalink
Merge series "ASoC: Fix return check for devm_regmap_init_sdw()" from…
Browse files Browse the repository at this point in the history
… Vinod Koul <[email protected]>:

This series attempts to fix return check for devm_regmap_init_sdw()

Changes in v2:
 - Add missing patch for rt711
 - Add patch for rt700

Vinod Koul (5):
  ASoC: max98373: Fix return check for devm_regmap_init_sdw()
  ASoC: rt1308-sdw: Fix return check for devm_regmap_init_sdw()
  ASoC: rt711: Fix return check for devm_regmap_init_sdw()
  ASoC: rt715: Fix return check for devm_regmap_init_sdw()
  ASoC: rt700: Fix return check for devm_regmap_init_sdw()

 sound/soc/codecs/max98373-sdw.c | 4 ++--
 sound/soc/codecs/rt1308-sdw.c   | 4 ++--
 sound/soc/codecs/rt700-sdw.c    | 4 ++--
 sound/soc/codecs/rt711-sdw.c    | 4 ++--
 sound/soc/codecs/rt715-sdw.c    | 4 ++--
 5 files changed, 10 insertions(+), 10 deletions(-)

--
2.26.2
  • Loading branch information
broonie committed Aug 26, 2020
2 parents c1e6414 + db1a425 commit d563b6c
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions sound/soc/codecs/max98373-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -838,8 +838,8 @@ static int max98373_sdw_probe(struct sdw_slave *slave,

/* Regmap Initialization */
regmap = devm_regmap_init_sdw(slave, &max98373_sdw_regmap);
if (!regmap)
return -EINVAL;
if (IS_ERR(regmap))
return PTR_ERR(regmap);

return max98373_init(slave, regmap);
}
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/rt1308-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/rt700-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/rt711-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,8 @@ static int rt711_sdw_probe(struct sdw_slave *slave,

/* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt711_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, &rt711_regmap);
Expand Down
4 changes: 2 additions & 2 deletions sound/soc/codecs/rt715-sdw.c
Original file line number Diff line number Diff line change
Expand Up @@ -527,8 +527,8 @@ static int rt715_sdw_probe(struct sdw_slave *slave,

/* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt715_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,
&rt715_regmap);
Expand Down

0 comments on commit d563b6c

Please sign in to comment.