diff options
author | Jean Delvare <khali@linux-fr.org> | 2008-07-14 16:38:25 -0400 |
---|---|---|
committer | Jean Delvare <khali@mahadeva.delvare> | 2008-07-14 16:38:25 -0400 |
commit | ac7fc4fb2b6a126af8d07f46500440c9641976cf (patch) | |
tree | 1ba7a6b229699f6d69cfe3f1bd74c020e952e16b /drivers/i2c/busses/i2c-i801.c | |
parent | fa63cd56d2f09806169307d761e8f430e23bc09b (diff) |
i2c: Consistently reject unsupported transactions
Many PC SMBus host controller drivers don't properly handle the case
where they are requested to achieve a transaction they do not support.
Update them so that the consistently print a warning message and
return a single error value in this case.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Diffstat (limited to 'drivers/i2c/busses/i2c-i801.c')
-rw-r--r-- | drivers/i2c/busses/i2c-i801.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/i2c/busses/i2c-i801.c b/drivers/i2c/busses/i2c-i801.c index 7d6d9dfcc58a..213119211e58 100644 --- a/drivers/i2c/busses/i2c-i801.c +++ b/drivers/i2c/busses/i2c-i801.c | |||
@@ -513,7 +513,6 @@ static s32 i801_access(struct i2c_adapter * adap, u16 addr, | |||
513 | outb_p(command, SMBHSTCMD); | 513 | outb_p(command, SMBHSTCMD); |
514 | block = 1; | 514 | block = 1; |
515 | break; | 515 | break; |
516 | case I2C_SMBUS_PROC_CALL: | ||
517 | default: | 516 | default: |
518 | dev_err(&I801_dev->dev, "Unsupported transaction %d\n", size); | 517 | dev_err(&I801_dev->dev, "Unsupported transaction %d\n", size); |
519 | return -EOPNOTSUPP; | 518 | return -EOPNOTSUPP; |