I2C: Fixes to the i2c-amd756-s4882 driver
PATCH 1/1 I2C: Fixes to the i2c-amd756-s4882 driver
Hi Greg,
While working on the 2.4 version of the i2c-amd756-s4882 driver, I noticed a few quirks on the 2.6 version I sent to you. The following patch attempts to fix them.
These are not critical fixes, so they can be delayed until after 2.6.10 is released.
Thanks.
Signed-off-by Jean Delvare <[email protected]>
drivers/i2c/busses/i2c-amd756-s4882.c renamed from drivers/i2c/busses/i2c-amd756-s4882.c.orig +5 -2
@@ -35,6 +35,7 @@#include <linux/module.h> #include <linux/kernel.h> +#include <linux/slab.h> #include <linux/init.h> #include <linux/i2c.h>
@@ -156,7 +157,9 @@/* Unregister physical bus */ error =i2c_del_adapter (&amd756_smbus);if (error) { -if (error != -EINVAL ) +if (error = -EINVAL ) + error = -ENODEV ; +else dev_err (&amd756_smbus.dev,"Physical bus removal " "failed\n" ); goto ERROR0;
@@ -200,7 +203,7 @@I2C_SMBUS_WRITE ,0x03 , I2C_SMBUS_BYTE_DATA, &ioconfig);if (error) { -dev_dbg (&amd756_smbus.dev,"PCA9556 configuration failed\n" ); +dev_err (&amd756_smbus.dev,"PCA9556 configuration failed\n" ); error = -EIO ; goto ERROR3; }
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
Greg KH
AppliedPATCH 1/1 I2C: Fixes to the i2c-amd756-s4882 driver
Quoted 6 lines · Jean Delvare
Hi Greg,
While working on the 2.4 version of the i2c-amd756-s4882 driver, I noticed a few quirks on the 2.6 version I sent to you. The following patch attempts to fix them.
Quoted 6 lines
These are not critical fixes, so they can be delayed until after 2.6.10 is released.
Thanks.
Signed-off-by Jean Delvare <[email protected]>
Applied, thanks.
greg k-h