From a441ca74b485183dd636eeab92312349ffda7394 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Mon, 15 Oct 2007 17:40:48 -0700 Subject: compat: fix syntax mistake in compat.h From: Trent Piepho A previous patch forgot the "define" in #define and so won't even compile when the code was triggered (kernel < 2.6.13). Signed-off-by: Trent Piepho --- v4l/compat.h | 4 ++-- 1 file 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) -- cgit v1.2.3