Changeset 545
- Timestamp:
- 09/03/99 13:11:03 (14 years ago)
- Location:
- lm-sensors/trunk
- Files:
-
- 3 modified
-
kernel/busses/i2c-i801.c (modified) (1 diff)
-
kernel/include/compat.h (modified) (1 diff)
-
mkpatch/mkpatch.pl (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lm-sensors/trunk/kernel/busses/i2c-i801.c
r537 r545 41 41 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,1,54)) 42 42 #include <linux/bios32.h> 43 #endif44 45 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53)46 #include <linux/init.h>47 #else48 #define __init49 #define __initdata50 43 #endif 51 44 -
lm-sensors/trunk/kernel/include/compat.h
r531 r545 94 94 #endif 95 95 96 /* Including init.h should be safe, even if it is not used. */ 97 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 98 #include <linux/init.h> 99 #else 100 #define __init 101 #define __initdata 102 #endif 103 96 104 /* For old 2.0 kernels */ 97 105 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,34)) -
lm-sensors/trunk/mkpatch/mkpatch.pl
r518 r545 32 32 my ($diff_command,$dummy); 33 33 34 $diff_command = "diff -u2 $kernel_root/$kernel_file "; 35 $diff_command .= "$package_root/$package_file"; 34 $diff_command = "diff -u2"; 35 if ( -e "$kernel_root/$kernel_file") { 36 $diff_command .= " $kernel_root/$kernel_file "; 37 } else { 38 $diff_command .= " /dev/null "; 39 } 40 if ( -e "$package_root/$package_file") { 41 $diff_command .= " $package_root/$package_file "; 42 } else { 43 $diff_command .= " /dev/null"; 44 } 36 45 open INPUT, "$diff_command|" or die "Can't execute `$diff_command'"; 37 46 $dummy = <INPUT>; … … 531 540 #endif 532 541 EOF 533 534 } 542 } 543 if (`grep '__init' "$package_root/$package_file"`) { 544 print OUTPUT << 'EOF'; 545 #if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53) 546 #include <linux/init.h> 547 #else 548 #define __init 549 #define __initdata 550 #endif 551 EOF 552 } 535 553 if (`grep 'PCI_DEVICE_ID_VIA_82C586_3' "$package_root/$package_file"`) { 536 554 print OUTPUT << 'EOF'; … … 569 587 EOF 570 588 } 589 if (`grep 'PCI_DEVICE_ID_INTEL_82801AA_3\|PCI_DEVICE_ID_INTEL_82801AB_3' "$package_root/$package_file"`) { 590 print OUTPUT << 'EOF'; 591 #ifndef PCI_DEVICE_ID_INTEL_82801AA_3 592 #define PCI_DEVICE_ID_INTEL_82801AA_3 0x2413 593 #endif 594 #ifndef PCI_DEVICE_ID_INTEL_82801AB_3 595 #define PCI_DEVICE_ID_INTEL_82801AB_3 0x2423 596 #endif 597 EOF 598 } 571 599 print OUTPUT << 'EOF'; 600 572 601 /* --> END OF COMPATIBILITY SECTION */ 573 602
