Only use __exit in 2.4.xx and later kernels.

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1457 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Abraham van der Merwe committed 2002-07-15 10:08:40 +00:00
1 parent 5ef460df5c
commit 9d559f9ce1
2 files changed
+14

No files matched your search

+5
View File
@@ -406,6 +406,11 @@ static int __init sensors_lm92_init (void)
return (0);
}
#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0))
#undef __exit
#define __exit
#endif /* #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,4,0)) */
static void __exit sensors_lm92_exit (void)
{
i2c_del_driver (&lm92_driver);