Changeset 3356
- Timestamp:
- 09/01/99 21:02:55 (14 years ago)
- Files:
-
- 1 modified
-
i2c/trunk/kernel/i2c-core.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
i2c/trunk/kernel/i2c-core.c
r3355 r3356 199 199 char name[8]; 200 200 struct proc_dir_entry *proc_entry; 201 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,29)) 202 int res; 203 #endif 201 204 202 205 sprintf(name,"i2c-%d", i); … … 280 283 remove_proc_entry(name,proc_bus); 281 284 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,29)) */ 282 if (proc_entry) { 285 int res; 286 if (adapters[i]->proc_entry) { 283 287 if ((res = proc_unregister(&proc_bus_dir, 284 288 adapters[i]->proc_entry->low_ino))) { 285 289 printk("i2c-core.o: Deregistration of /proc " 286 "entry failed\n" 290 "entry failed\n"); 287 291 return res; 288 292 } … … 578 582 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) 579 583 struct proc_dir_entry *proc_bus_i2c; 584 #else 585 int res; 580 586 #endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */ 581 587 … … 629 635 i2cproc_initialized -= 2; 630 636 #else /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,29)) */ 637 int res; 631 638 if (i2cproc_initialized >= 2) { 632 639 if ((res = proc_unregister(&proc_bus_dir,
