Input: omap-keypad - set tasklet data earlier
It feels like we should set the tasklet data before enabling it. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
415a249f88
commit
7ae6cfe8d2
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue