forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/drivers/i2c/muxes/i2c-mux-mlxcpld.c
....@@ -132,7 +132,7 @@
132132 static int mlxcpld_mux_probe(struct i2c_client *client,
133133 const struct i2c_device_id *id)
134134 {
135
- struct i2c_adapter *adap = to_i2c_adapter(client->dev.parent);
135
+ struct i2c_adapter *adap = client->adapter;
136136 struct mlxcpld_mux_plat_data *pdata = dev_get_platdata(&client->dev);
137137 struct i2c_mux_core *muxc;
138138 int num, force;