Add power state initialization
authorTracy Yi <tracy-yi@ti.com>
Wed, 5 Dec 2018 03:46:14 +0000 (11:46 +0800)
committerTracy Yi <tracy-yi@ti.com>
Wed, 5 Dec 2018 03:46:14 +0000 (11:46 +0800)
Signed-off-by: Tracy Yi <tracy-yi@ti.com>
tas2770-regmap.c

index e2b65b94bddbf97440a2d6d652fbbbe78442d99d..196f163b897e43e2bd23c99208acb75f6702d414 100644 (file)
@@ -415,6 +415,7 @@ static int tas2770_i2c_probe(struct i2c_client *client,
        pTAS2770->dev = &client->dev;
        i2c_set_clientdata(client, pTAS2770);
        dev_set_drvdata(&client->dev, pTAS2770);
        pTAS2770->dev = &client->dev;
        i2c_set_clientdata(client, pTAS2770);
        dev_set_drvdata(&client->dev, pTAS2770);
+       pTAS2770->mnPowerState = TAS2770_POWER_STATE;
 
        pTAS2770->regmap = devm_regmap_init_i2c(client, &tas2770_i2c_regmap);
        if (IS_ERR(pTAS2770->regmap)) {
 
        pTAS2770->regmap = devm_regmap_init_i2c(client, &tas2770_i2c_regmap);
        if (IS_ERR(pTAS2770->regmap)) {