mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-25 12:14:33 +00:00
mkpatch updates
* mkpatch now correctly works when kernel-side files do not yet exist. I forgot to propagate a change in the i2c version. * __init* handling in mkpatch and compat.h * New i801 defines added to mkpatch git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@545 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
d00f2e005d
commit
d1e26d5f16
3 files changed
+40
-10
No files matched your search
@@ -93,6 +93,14 @@
|
||||
#define init_MUTEX(s) do { *(s) = MUTEX; } while(0)
|
||||
#endif
|
||||
|
||||
/* Including init.h should be safe, even if it is not used. */
|
||||
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,53)
|
||||
#include <linux/init.h>
|
||||
#else
|
||||
#define __init
|
||||
#define __initdata
|
||||
#endif
|
||||
|
||||
/* For old 2.0 kernels */
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,0,34))
|
||||
#define PCI_DEVICE_ID_VIA_82C586_3 0x3040
|
||||
|
||||
Reference in new issue
Block a user