summaryrefslogtreecommitdiff
path: root/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
diff options
context:
space:
mode:
authorMike Isely <isely@pobox.com>2007-10-28 20:19:53 -0500
committerMike Isely <isely@pobox.com>2007-10-28 20:19:53 -0500
commitf0177a6944d2424bf957046add61d6472ae49237 (patch)
tree44ce6f3a858704762a082c211b624e62e3cf4c26 /linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
parent668a09d846c72467de7777a58c87bea71cbdc93a (diff)
downloadmediapointer-dvb-s2-f0177a6944d2424bf957046add61d6472ae49237.tar.gz
mediapointer-dvb-s2-f0177a6944d2424bf957046add61d6472ae49237.tar.bz2
pvrusb2: Remove dead sysfs code
From: Mike Isely <isely@pobox.com> The pvrusb2 driver's sysfs implementation had long since implemented a dummy hotplug function because at the time the kernel would oops without at least the empty function being present. Today - after numerous class interface changes in the kernel - this pvrusb2 change had been dutifully carried forward but an inspection of the kernel sources shows that it is no longer needed. So remove the dummy function and its reference. This also solves a recurring backwards compatibility issue in the pvrusb2 driver as the class interface has been getting thrashed in the kernel. Signed-off-by: Mike Isely <isely@pobox.com>
Diffstat (limited to 'linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c')
-rw-r--r--linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
index 8537b5b05..7bcf0996f 100644
--- a/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/linux/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -922,14 +922,6 @@ static int pvr2_sysfs_hotplug(struct class_device *cd,char **envp,
because sysfs will still try to call it. */
return 0;
}
-#else
-static int pvr2_sysfs_hotplug(struct device *d,
- struct kobj_uevent_env *env)
-{
- /* Even though we don't do anything here, we still need this function
- because sysfs will still try to call it. */
- return 0;
-}
#endif
struct pvr2_sysfs_class *pvr2_sysfs_class_create(void)
@@ -949,8 +941,6 @@ struct pvr2_sysfs_class *pvr2_sysfs_class_create(void)
clp->class.hotplug = pvr2_sysfs_hotplug;
#elif LINUX_VERSION_CODE < KERNEL_VERSION(2,6,19)
clp->class.uevent = pvr2_sysfs_hotplug;
-#else
- clp->class.dev_uevent = pvr2_sysfs_hotplug;
#endif
if (class_register(&clp->class)) {
pvr2_sysfs_trace(