Commit 66aa68ba authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

[PATCH] I2C: remove the isa address check alltogether.

parent 0873a5d6
...@@ -50,10 +50,7 @@ int i2c_detect(struct i2c_adapter *adapter, ...@@ -50,10 +50,7 @@ int i2c_detect(struct i2c_adapter *adapter,
return -1; return -1;
for (addr = 0x00; addr <= (is_isa ? 0xffff : 0x7f); addr++) { for (addr = 0x00; addr <= (is_isa ? 0xffff : 0x7f); addr++) {
void *region_used = request_region(addr, 1, "foo"); if (!is_isa && i2c_check_addr(adapter, addr))
release_region(addr, 1);
if ((is_isa && (region_used == NULL)) ||
(!is_isa && i2c_check_addr(adapter, addr)))
continue; continue;
/* If it is in one of the force entries, we don't do any /* If it is in one of the force entries, we don't do any
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment