]> git.itanic.dy.fi Git - linux-stable/blobdiff - drivers/i2c/busses/i2c-mlxbf.c
i2c: mlxbf: incorrect base address passed during io write
[linux-stable] / drivers / i2c / busses / i2c-mlxbf.c
index 8716032f030a016b90cebd6c50951d638d4b343d..612736906440d5e8dd08176a8b02f94f3b5aaaa4 100644 (file)
@@ -669,7 +669,7 @@ static int mlxbf_i2c_smbus_enable(struct mlxbf_i2c_priv *priv, u8 slave,
        /* Clear status bits. */
        writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_STATUS);
        /* Set the cause data. */
-       writel(~0x0, priv->smbus->io + MLXBF_I2C_CAUSE_OR_CLEAR);
+       writel(~0x0, priv->mst_cause->io + MLXBF_I2C_CAUSE_OR_CLEAR);
        /* Zero PEC byte. */
        writel(0x0, priv->smbus->io + MLXBF_I2C_SMBUS_MASTER_PEC);
        /* Zero byte count. */