From e9b2a80a0b77053b342d767697d029baf8438914 Mon Sep 17 00:00:00 2001 From: Mike Isely Date: Sun, 22 Jan 2006 03:51:19 +0000 Subject: Various fixes to permit pvrusb2 compilation w/ kernel 2.6.16 From: Mike Isely Signed-off-by: Mike Isely --- v4l_experimental/pvrusb2/pvrusb2-sysfs.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'v4l_experimental/pvrusb2/pvrusb2-sysfs.c') diff --git a/v4l_experimental/pvrusb2/pvrusb2-sysfs.c b/v4l_experimental/pvrusb2/pvrusb2-sysfs.c index 42e012d96..7d17ee749 100644 --- a/v4l_experimental/pvrusb2/pvrusb2-sysfs.c +++ b/v4l_experimental/pvrusb2/pvrusb2-sysfs.c @@ -1,6 +1,6 @@ /* * - * $Id: pvrusb2-sysfs.c,v 1.1 2005/11/14 13:31:24 mchehab Exp $ + * $Id: pvrusb2-sysfs.c,v 1.2 2006/01/22 03:51:19 mcisely Exp $ * * Copyright (C) 2005 Mike Isely * @@ -22,6 +22,7 @@ #include #include #include +#include "compat.h" #include "pvrusb2-sysfs.h" #include "pvrusb2-hdw.h" #include "pvrusb2-debug.h" @@ -739,7 +740,11 @@ struct pvr2_sysfs_class *pvr2_sysfs_class_create(void) clp->class.name = "pvrusb2"; clp->class.class_release = pvr2_sysfs_class_release; clp->class.release = pvr2_sysfs_release; +#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,16) clp->class.hotplug = pvr2_sysfs_hotplug; +#else + clp->class.uevent = pvr2_sysfs_hotplug; +#endif if (class_register(&clp->class)) { pvr2_sysfs_trace( "Registration failed for pvr2_sysfs_class id=%p",clp); -- cgit v1.2.3