Do not return negative values to i2c_detect on non-fatal errors.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2837 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-01-07 20:21:58 +00:00
1 parent da76debaa5
commit aa1f43f680
8 files changed
+17 -44

No files matched your search

-1
View File
@@ -324,7 +324,6 @@ int pca954x_detect(struct i2c_adapter *adapter, int address,
printk(KERN_WARNING
"i2c-%d: pca954x.o failed to read reg at %0x",
i2c_adapter_id(adapter), address);
err = -ENODEV;
goto ERROR1;
}
data->origval = i;