aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/i2c
diff options
context:
space:
mode:
authorJean Delvare <khali@linux-fr.org>2005-07-19 18:05:33 -0400
committerGreg Kroah-Hartman <gregkh@suse.de>2005-09-05 12:14:12 -0400
commit02ff982c6911de1484e13a1d765d7bd31a0f8fee (patch)
tree94e8c388df0de6561da7f10840f4e87dead18724 /Documentation/i2c
parent5071860aba7fc69279ab822638ed2c2e4549f9fd (diff)
[PATCH] I2C: Separate non-i2c hwmon drivers from i2c-core (8/9)
Kill all uses of i2c_is_isa_adapter except for the hybrid drivers (it87, lm78, w83781d). The i2c-isa adapter not being registered with the i2c core anymore, drivers don't have to fear being erroneously attached to it. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'Documentation/i2c')
-rw-r--r--Documentation/i2c/writing-clients11
1 files changed, 5 insertions, 6 deletions
diff --git a/Documentation/i2c/writing-clients b/Documentation/i2c/writing-clients
index e6b546dd4f7b..522ae01d2e7f 100644
--- a/Documentation/i2c/writing-clients
+++ b/Documentation/i2c/writing-clients
@@ -315,11 +315,10 @@ For now, you can ignore the `flags' parameter. It is there for future use.
315 const char *type_name = ""; 315 const char *type_name = "";
316 int is_isa = i2c_is_isa_adapter(adapter); 316 int is_isa = i2c_is_isa_adapter(adapter);
317 317
318 if (is_isa) { 318 /* Do this only if the chip can additionally be found on the ISA bus
319 (hybrid chip). */
319 320
320 /* If this client can't be on the ISA bus at all, we can stop now 321 if (is_isa) {
321 (call `goto ERROR0'). But for kicks, we will assume it is all
322 right. */
323 322
324 /* Discard immediately if this ISA range is already used */ 323 /* Discard immediately if this ISA range is already used */
325 if (check_region(address,FOO_EXTENT)) 324 if (check_region(address,FOO_EXTENT))
@@ -495,10 +494,10 @@ much simpler than the attachment code, fortunately!
495 return err; 494 return err;
496 } 495 }
497 496
498 /* SENSORS ONLY START */ 497 /* HYBRID SENSORS CHIP ONLY START */
499 if i2c_is_isa_client(client) 498 if i2c_is_isa_client(client)
500 release_region(client->addr,LM78_EXTENT); 499 release_region(client->addr,LM78_EXTENT);
501 /* SENSORS ONLY END */ 500 /* HYBRID SENSORS CHIP ONLY END */
502 501
503 kfree(client); /* Frees client data too, if allocated at the same time */ 502 kfree(client); /* Frees client data too, if allocated at the same time */
504 return 0; 503 return 0;