diff --git a/drivers/mfd/qcom-i2c-pmic.c b/drivers/mfd/qcom-i2c-pmic.c index d0f600a81d53..72702918ade4 100644 --- a/drivers/mfd/qcom-i2c-pmic.c +++ b/drivers/mfd/qcom-i2c-pmic.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2018, 2020, The Linux Foundation. All rights reserved. */ #define pr_fmt(fmt) "I2C PMIC: %s: " fmt, __func__ @@ -13,6 +13,7 @@ #include #include #include +#include #include #include @@ -534,6 +535,8 @@ static int i2c_pmic_probe(struct i2c_client *client, if (!chip->regmap) return -ENODEV; + devm_regmap_qti_debugfs_register(chip->dev, chip->regmap); + i2c_set_clientdata(client, chip); if (!of_property_read_bool(chip->dev->of_node, "interrupt-controller")) goto probe_children;