aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
Diffstat (limited to 'Documentation')
-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;