diff options
-rw-r--r-- | drivers/mfd/intel_soc_pmic_core.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index 3b5583586662..13737be6df35 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c | |||
@@ -66,6 +66,9 @@ static int intel_soc_pmic_i2c_probe(struct i2c_client *i2c, | |||
66 | dev_set_drvdata(dev, pmic); | 66 | dev_set_drvdata(dev, pmic); |
67 | 67 | ||
68 | pmic->regmap = devm_regmap_init_i2c(i2c, config->regmap_config); | 68 | pmic->regmap = devm_regmap_init_i2c(i2c, config->regmap_config); |
69 | if (IS_ERR(pmic->regmap)) | ||
70 | return PTR_ERR(pmic->regmap); | ||
71 | |||
69 | pmic->irq = i2c->irq; | 72 | pmic->irq = i2c->irq; |
70 | 73 | ||
71 | ret = regmap_add_irq_chip(pmic->regmap, pmic->irq, | 74 | ret = regmap_add_irq_chip(pmic->regmap, pmic->irq, |