]> Git Repo - linux.git/commitdiff
ASoC: ssm2602: do not hardcode type to SSM2602
authorStefan Kristiansson <[email protected]>
Mon, 29 Sep 2014 19:39:13 +0000 (22:39 +0300)
committerMark Brown <[email protected]>
Tue, 30 Sep 2014 12:27:19 +0000 (13:27 +0100)
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: c924dc68f737 ("ASoC: ssm2602: Split SPI and I2C code into different modules")
Signed-off-by: Stefan Kristiansson <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Acked-by: Lars-Peter Clausen <[email protected]>
Cc: [email protected]
sound/soc/codecs/ssm2602.c

index 484b3bbe8624be1cff63a1bd5154c8034ab80ef8..4021cd4357409e9ee95080ae9e61bb5752774272 100644 (file)
@@ -647,7 +647,7 @@ int ssm2602_probe(struct device *dev, enum ssm2602_type type,
                return -ENOMEM;
 
        dev_set_drvdata(dev, ssm2602);
-       ssm2602->type = SSM2602;
+       ssm2602->type = type;
        ssm2602->regmap = regmap;
 
        return snd_soc_register_codec(dev, &soc_codec_dev_ssm2602,
This page took 0.061348 seconds and 4 git commands to generate.