]> Devoid-pointer.net GitWeb - KLGD_FF_plugin.git/commitdiff
Update to new klgd_register_plugin() API
authorMichal Malý <madcatxster@devoid-pointer.net>
Thu, 28 Aug 2014 10:44:02 +0000 (12:44 +0200)
committerMichal Malý <madcatxster@devoid-pointer.net>
Thu, 28 Aug 2014 10:44:02 +0000 (12:44 +0200)
klgd_ff_plugin.c
klgdff.c

index 3434e2731d45bd5c502c3014b077d62b8cd0afc9..c66560f32f76c29acaa6a258e893cc83ee058962 100644 (file)
@@ -21,8 +21,6 @@ static void ffpl_destroy_rq(struct ff_device *ff)
        }
        kfree(priv->effects);
        kfree(priv);
-       /* Prevent double free in klgd_deinit() */
-       ff->private = NULL;
 }
 
 /* Erase request coming from userspace */
index 836afdade90726da48e9a2bd9452e14a0e3f6bf1..b22f70848f240048ff49c4cecccd4024e4a0311d 100644 (file)
--- a/klgdff.c
+++ b/klgdff.c
@@ -122,7 +122,7 @@ static int __init klgdff_init(void)
                goto errout_regdev;
        }
        
-       ret = klgd_register_plugin(&klgd, 0, ff_plugin);
+       ret = klgd_register_plugin(&klgd, 0, ff_plugin, true);
        if (ret) {
                printk(KERN_ERR "KLGDFF: Cannot register plugin\n");
                goto errout_idev;