diff --git a/drivers/mfd/max96745.c b/drivers/mfd/max96745.c index c56d462167ab..af7fac7d3f5b 100644 --- a/drivers/mfd/max96745.c +++ b/drivers/mfd/max96745.c @@ -202,6 +202,7 @@ static int max96745_i2c_probe(struct i2c_client *client) struct device_node *child; struct max96745 *max96745; unsigned int nr = 0; + bool idle_disc; int ret; for_each_available_child_of_node(dev->of_node, child) { @@ -215,9 +216,11 @@ static int max96745_i2c_probe(struct i2c_client *client) if (!max96745) return -ENOMEM; + idle_disc = device_property_read_bool(dev, "i2c-mux-idle-disconnect"); + max96745->muxc = i2c_mux_alloc(client->adapter, dev, nr, - 0, I2C_MUX_LOCKED, - max96745_select, max96745_deselect); + 0, I2C_MUX_LOCKED, max96745_select, + idle_disc ? max96745_deselect : NULL); if (!max96745->muxc) return -ENOMEM;