summaryrefslogtreecommitdiff
path: root/linux/include
diff options
context:
space:
mode:
Diffstat (limited to 'linux/include')
-rw-r--r--linux/include/media/saa7146.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/include/media/saa7146.h b/linux/include/media/saa7146.h
index 2e85e7b19..762736f43 100644
--- a/linux/include/media/saa7146.h
+++ b/linux/include/media/saa7146.h
@@ -16,8 +16,8 @@
#include <linux/mm.h> /* for vmalloc_to_page() */
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,0)
-static inline
-int try_module_get(struct module *mod)
+#ifndef __CRAP_H
+static inline int try_module_get(struct module *mod)
{
if (!MOD_CAN_QUERY(mod))
return 0;
@@ -29,7 +29,7 @@ int try_module_get(struct module *mod)
#define iminor(xx) minor(xx->i_rdev)
#define strlcpy strncpy
#define i2c_get_adapdata(adapter) (struct saa7146_dev*)adapter->data;
-
+#endif
#endif
#define SAA7146_VERSION_CODE KERNEL_VERSION(0,5,0)