aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/i2c/busses/i2c-powermac.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/i2c/busses/i2c-powermac.c b/drivers/i2c/busses/i2c-powermac.c
index 3c9d71f60187..a74f3bab05b8 100644
--- a/drivers/i2c/busses/i2c-powermac.c
+++ b/drivers/i2c/busses/i2c-powermac.c
@@ -146,6 +146,12 @@ static int i2c_powermac_master_xfer( struct i2c_adapter *adap,
146 int read; 146 int read;
147 int addrdir; 147 int addrdir;
148 148
149 if (num != 1) {
150 dev_err(&adap->dev,
151 "Multi-message I2C transactions not supported\n");
152 return -EOPNOTSUPP;
153 }
154
149 if (msgs->flags & I2C_M_TEN) 155 if (msgs->flags & I2C_M_TEN)
150 return -EINVAL; 156 return -EINVAL;
151 read = (msgs->flags & I2C_M_RD) != 0; 157 read = (msgs->flags & I2C_M_RD) != 0;