Commit b5dff6ec authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: codecs: rt*-sdw: don't assign slave_ops

The SoundWire bus core already assigns the slave ops, no need to set
them a second time manually in each driver.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: default avatarGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Reviewed-by: default avatarRander Wang <rander.wang@intel.com>
Cc: Oder Chiou <oder_chiou@realtek.com>
Cc: Shuming Fan <shumingf@realtek.com>
Cc: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/20200515211531.11416-2-pierre-louis.bossart@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent d731c1a0
...@@ -684,9 +684,6 @@ static int rt1308_sdw_probe(struct sdw_slave *slave, ...@@ -684,9 +684,6 @@ static int rt1308_sdw_probe(struct sdw_slave *slave,
{ {
struct regmap *regmap; struct regmap *regmap;
/* Assign ops */
slave->ops = &rt1308_slave_ops;
/* Regmap Initialization */ /* Regmap Initialization */
regmap = devm_regmap_init_sdw(slave, &rt1308_sdw_regmap); regmap = devm_regmap_init_sdw(slave, &rt1308_sdw_regmap);
if (!regmap) if (!regmap)
......
...@@ -241,9 +241,6 @@ static int rt5682_sdw_probe(struct sdw_slave *slave, ...@@ -241,9 +241,6 @@ static int rt5682_sdw_probe(struct sdw_slave *slave,
{ {
struct regmap *regmap; struct regmap *regmap;
/* Assign ops */
slave->ops = &rt5682_slave_ops;
/* Regmap Initialization */ /* Regmap Initialization */
regmap = devm_regmap_init_sdw(slave, &rt5682_sdw_regmap); regmap = devm_regmap_init_sdw(slave, &rt5682_sdw_regmap);
if (IS_ERR(regmap)) if (IS_ERR(regmap))
......
...@@ -450,9 +450,6 @@ static int rt700_sdw_probe(struct sdw_slave *slave, ...@@ -450,9 +450,6 @@ static int rt700_sdw_probe(struct sdw_slave *slave,
{ {
struct regmap *sdw_regmap, *regmap; struct regmap *sdw_regmap, *regmap;
/* Assign ops */
slave->ops = &rt700_slave_ops;
/* Regmap Initialization */ /* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt700_sdw_regmap); sdw_regmap = devm_regmap_init_sdw(slave, &rt700_sdw_regmap);
if (!sdw_regmap) if (!sdw_regmap)
......
...@@ -450,9 +450,6 @@ static int rt711_sdw_probe(struct sdw_slave *slave, ...@@ -450,9 +450,6 @@ static int rt711_sdw_probe(struct sdw_slave *slave,
{ {
struct regmap *sdw_regmap, *regmap; struct regmap *sdw_regmap, *regmap;
/* Assign ops */
slave->ops = &rt711_slave_ops;
/* Regmap Initialization */ /* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt711_sdw_regmap); sdw_regmap = devm_regmap_init_sdw(slave, &rt711_sdw_regmap);
if (!sdw_regmap) if (!sdw_regmap)
......
...@@ -525,9 +525,6 @@ static int rt715_sdw_probe(struct sdw_slave *slave, ...@@ -525,9 +525,6 @@ static int rt715_sdw_probe(struct sdw_slave *slave,
{ {
struct regmap *sdw_regmap, *regmap; struct regmap *sdw_regmap, *regmap;
/* Assign ops */
slave->ops = &rt715_slave_ops;
/* Regmap Initialization */ /* Regmap Initialization */
sdw_regmap = devm_regmap_init_sdw(slave, &rt715_sdw_regmap); sdw_regmap = devm_regmap_init_sdw(slave, &rt715_sdw_regmap);
if (!sdw_regmap) if (!sdw_regmap)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment