summaryrefslogtreecommitdiffstats
path: root/drivers/power/supply/rt9455_charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/power/supply/rt9455_charger.c')
-rw-r--r--drivers/power/supply/rt9455_charger.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/rt9455_charger.c b/drivers/power/supply/rt9455_charger.c
index 40a9d329418a..29161ae90245 100644
--- a/drivers/power/supply/rt9455_charger.c
+++ b/drivers/power/supply/rt9455_charger.c
@@ -1584,7 +1584,7 @@ static const struct regmap_config rt9455_regmap_config = {
static int rt9455_probe(struct i2c_client *client,
const struct i2c_device_id *id)
{
- struct i2c_adapter *adapter = to_i2c_adapter(client->dev.parent);
+ struct i2c_adapter *adapter = client->adapter;
struct device *dev = &client->dev;
struct rt9455_info *info;
struct power_supply_config rt9455_charger_config = {};