summaryrefslogtreecommitdiff
path: root/v4l/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/compat.h')
-rw-r--r--v4l/compat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/v4l/compat.h b/v4l/compat.h
index ab2dcb688..a8d1b1d45 100644
--- a/v4l/compat.h
+++ b/v4l/compat.h
@@ -17,8 +17,8 @@
# define DEVICE_ATTR(a,b,c,d) CLASS_DEVICE_ATTR(a,b,c,d)
# define device_create_file(a,b) class_device_create_file(a,b)
# define device_remove_file(a,b) class_device_remove_file(a,b)
-# device_register(a) class_device_register(a)
-# device_unregister(a) class_device_unregister(a)
+# define device_register(a) class_device_register(a)
+# define device_unregister(a) class_device_unregister(a)
#endif
#if LINUX_VERSION_CODE < KERNEL_VERSION(2,5,0)