Commit:     f21daa41d19def8c0a1e9d9626f773447b8191f6
Parent:     4ed53a5af75d858bd224c2cdd7604e347a63218f
Author:     Mike Isely <[EMAIL PROTECTED]>
AuthorDate: Sun Oct 28 22:19:53 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Sun Nov 4 21:41:26 2007 -0200

    V4L/DVB (6504): pvrusb2: Remove dead sysfs code
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
 drivers/media/video/pvrusb2/pvrusb2-sysfs.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c 
index 2ee3c30..3c57a7d 100644
--- a/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
+++ b/drivers/media/video/pvrusb2/pvrusb2-sysfs.c
@@ -905,13 +905,6 @@ struct pvr2_sysfs *pvr2_sysfs_create(struct pvr2_context 
-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;
 struct pvr2_sysfs_class *pvr2_sysfs_class_create(void)
@@ -922,7 +915,6 @@ struct pvr2_sysfs_class *pvr2_sysfs_class_create(void)
        clp-> = "pvrusb2";
        clp->class.class_release = pvr2_sysfs_class_release;
        clp->class.dev_release = pvr2_sysfs_release;
-       clp->class.dev_uevent = pvr2_sysfs_hotplug;
        if (class_register(&clp->class)) {
                        "Registration failed for pvr2_sysfs_class id=%p",clp);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to