Add power state initialization
[tas2770sw-android/tas2770sw-android.git] / 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->mnPowerState = TAS2770_POWER_STATE;
 
        pTAS2770->regmap = devm_regmap_init_i2c(client, &tas2770_i2c_regmap);
        if (IS_ERR(pTAS2770->regmap)) {