projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
415a249
)
Input: omap-keypad - set tasklet data earlier
author
Dan Carpenter
<
[email protected]
>
Thu, 7 Jan 2016 17:55:14 +0000
(09:55 -0800)
committer
Dmitry Torokhov
<
[email protected]
>
Thu, 7 Jan 2016 17:57:21 +0000
(09:57 -0800)
It feels like we should set the tasklet data before enabling it.
Signed-off-by: Dan Carpenter <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/keyboard/omap-keypad.c
patch
|
blob
|
history
diff --git
a/drivers/input/keyboard/omap-keypad.c
b/drivers/input/keyboard/omap-keypad.c
index 7502e46165facb0aeed086277a39f5bd0ec58c10..75ad6661e1308087aedab4073436f3de87b9de05 100644
(file)
--- 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)