i2c: demux: handle the new atomic callbacks
[linux-2.6-block.git] / drivers / i2c / muxes / i2c-demux-pinctrl.c
index 035032e203276e96b27dd57770f47af98ee5146f..d50454c565ee4066f15eb4e8161fb5095a0b7785 100644 (file)
@@ -99,6 +99,8 @@ static int i2c_demux_activate_master(struct i2c_demux_pinctrl_priv *priv, u32 ne
 
        /* Now fill out current adapter structure. cur_chan must be up to date */
        priv->algo.master_xfer = i2c_demux_master_xfer;
+       if (adap->algo->master_xfer_atomic)
+               priv->algo.master_xfer_atomic = i2c_demux_master_xfer;
        priv->algo.functionality = i2c_demux_functionality;
 
        snprintf(priv->cur_adap.name, sizeof(priv->cur_adap.name),