Changeset 1367 for lm-sensors/trunk/kernel/busses/i2c-amd756.c
- Timestamp:
- 05/02/02 16:44:31 (11 years ago)
- Files:
-
- 1 modified
-
lm-sensors/trunk/kernel/busses/i2c-amd756.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-amd756.c
r1366 r1367 3 3 monitoring 4 4 5 Copyright (c) 1999 Merlin Hughes <merlin@merlin.org>5 Copyright (c) 1999-2002 Merlin Hughes <merlin@merlin.org> 6 6 7 7 Shamelessly ripped from i2c-piix4.c: … … 156 156 157 157 static int __initdata amd756_initialized; 158 static struct sd *amd756_sd = NULL; 158 159 static unsigned short amd756_smba = 0; 159 160 … … 197 198 if ((temp & 128) == 0) { 198 199 printk("i2c-amd756.o: Error: SMBus controller I/O not enabled!\n"); 200 return(-ENODEV); 199 201 } 200 return(-ENODEV);201 202 202 203 /* Determine the address of the SMBus areas */ … … 223 224 printk("i2c-amd756.o: AMD756_smba = 0x%X\n", amd756_smba); 224 225 #endif /* DEBUG */ 226 227 /* store struct sd * for future reference */ 228 amd756_sd = currdev; 225 229 226 230 return 0; … … 482 486 if ((res = amd756_setup())) { 483 487 printk 484 ("i2c-amd756.o: AMD756 /766not detected, module not inserted.\n");488 ("i2c-amd756.o: AMD756 or compatible device not detected, module not inserted.\n"); 485 489 amd756_cleanup(); 486 490 return res; 487 491 } 488 492 amd756_initialized++; 489 sprintf(amd756_adapter.name, "SMBus AMD7X6adapter at %04x",490 amd756_s mba);493 sprintf(amd756_adapter.name, "SMBus %s adapter at %04x", 494 amd756_sd->name, amd756_smba); 491 495 if ((res = i2c_add_adapter(&amd756_adapter))) { 492 496 printk … … 496 500 } 497 501 amd756_initialized++; 498 printk("i2c-amd756.o: AMD756/766 bus detected and initialized\n"); 502 printk("i2c-amd756.o: %s bus detected and initialized\n", 503 amd756_sd->name); 499 504 return 0; 500 505 } … … 523 528 524 529 MODULE_AUTHOR("Merlin Hughes <merlin@merlin.org>"); 525 MODULE_DESCRIPTION("AMD756/766 SMBus driver");530 MODULE_DESCRIPTION("AMD756/766/768/nVidia nForce SMBus driver"); 526 531 527 532 #ifdef MODULE_LICENSE
