From 6508e929217ac8f5780b6cf36f7d4a5b83228a6b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Michal=20Mal=C3=BD?= Date: Thu, 28 Aug 2014 12:44:02 +0200 Subject: [PATCH] Update to new klgd_register_plugin() API --- klgd_ff_plugin.c | 2 -- klgdff.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/klgd_ff_plugin.c b/klgd_ff_plugin.c index 3434e27..c66560f 100644 --- a/klgd_ff_plugin.c +++ b/klgd_ff_plugin.c @@ -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 */ diff --git a/klgdff.c b/klgdff.c index 836afda..b22f708 100644 --- 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; -- 2.43.5