2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

Get rid of useless i2c_probe call.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2539 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare
2004-05-16 16:13:07 +00:00
parent f0fe895cb1
commit b1596cd16a

View File

@@ -369,21 +369,7 @@ ERROR1:
static int lm92_attach_adapter (struct i2c_adapter *adapter)
{
int result;
struct i2c_client_address_data lm92_client_data = {
normal_i2c: addr_data.normal_i2c,
normal_i2c_range: addr_data.normal_i2c_range,
probe: addr_data.probe,
probe_range: addr_data.probe_range,
ignore: addr_data.ignore,
ignore_range: addr_data.ignore_range,
force: addr_data.forces->force
};
if (!(result = i2c_probe (adapter,&lm92_client_data,lm92_detect)))
result = i2c_detect (adapter,&addr_data,lm92_detect);
return (result);
return i2c_detect (adapter,&addr_data,lm92_detect);
}
static int lm92_detach_client (struct i2c_client *client)