Commit fe2a08b3 authored by Stefan Kristiansson's avatar Stefan Kristiansson Committed by Mark Brown

ASoC: ssm2602: do not hardcode type to SSM2602

The correct type (SSM2602/SSM2603/SSM2604) is passed down
from the ssm2602_spi_probe()/ssm2602_spi_probe() functions,
so use that instead of hardcoding it to SSM2602 in
ssm2602_probe().

Fixes: c924dc68 ("ASoC: ssm2602: Split SPI and I2C code into different modules")
Signed-off-by: default avatarStefan Kristiansson <stefan.kristiansson@saunalahti.fi>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Acked-by: default avatarLars-Peter Clausen <lars@metafoo.de>
Cc: stable@vger.kernel.org
parent 7d1311b9
...@@ -647,7 +647,7 @@ int ssm2602_probe(struct device *dev, enum ssm2602_type type, ...@@ -647,7 +647,7 @@ int ssm2602_probe(struct device *dev, enum ssm2602_type type,
return -ENOMEM; return -ENOMEM;
dev_set_drvdata(dev, ssm2602); dev_set_drvdata(dev, ssm2602);
ssm2602->type = SSM2602; ssm2602->type = type;
ssm2602->regmap = regmap; ssm2602->regmap = regmap;
return snd_soc_register_codec(dev, &soc_codec_dev_ssm2602, return snd_soc_register_codec(dev, &soc_codec_dev_ssm2602,
......
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