sh: push-switch: use setup_timer() helper.
PATCH 1/2 sh: push-switch: use setup_timer() helper.
Use setup_timer function instead of initializing timer with the function and data fields.
Signed-off-by Allen Pais <[email protected]>
--- arch/sh/drivers/push-switch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-)
arch/sh/drivers/push-switch.c +1 -4
@@ -78,11 +78,8 @@ static int switch_drv_probe(struct platform_device *pdev) }INIT_WORK (&psw->work, switch_work_handler); -init_timer (&psw->debounce); - - psw->debounce.function = switch_timer; - psw->debounce.data = (unsigned long )psw; +setup_timer (&psw->debounce, switch_timer, (unsigned long )psw);/* Workqueue API brain-damage */ psw->pdev = pdev;
Signature · 1 line
2.7.4