From: Dan Carpenter Date: Thu, 7 Jan 2016 17:55:14 +0000 (-0800) Subject: Input: omap-keypad - set tasklet data earlier X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7ae6cfe8d24681bea5a4a4b7a04915ac08c09ba5;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git Input: omap-keypad - set tasklet data earlier It feels like we should set the tasklet data before enabling it. Signed-off-by: Dan Carpenter Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/keyboard/omap-keypad.c b/drivers/input/keyboard/omap-keypad.c index 7502e46165fa..75ad6661e130 100644 --- a/drivers/input/keyboard/omap-keypad.c +++ b/drivers/input/keyboard/omap-keypad.c @@ -292,8 +292,8 @@ static int omap_kp_probe(struct platform_device *pdev) setup_timer(&omap_kp->timer, omap_kp_timer, (unsigned long)omap_kp); /* get the irq and init timer*/ - tasklet_enable(&kp_tasklet); kp_tasklet.data = (unsigned long) omap_kp; + tasklet_enable(&kp_tasklet); ret = device_create_file(&pdev->dev, &dev_attr_enable); if (ret < 0)