Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: cpwd: Use setup_timer()

The function setup_timer combines the initialization of a timer with
the initialization of the timer's function and data fields.
The multiline code for timer initialization is now replaced
with function setup_timer.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Muhammad Falak R Wani and committed by
Wim Van Sebroeck
d904ac34 fc4d2c73

+1 -3
+1 -3
drivers/watchdog/cpwd.c
··· 611 611 } 612 612 613 613 if (p->broken) { 614 - init_timer(&cpwd_timer); 615 - cpwd_timer.function = cpwd_brokentimer; 616 - cpwd_timer.data = (unsigned long) p; 614 + setup_timer(&cpwd_timer, cpwd_brokentimer, (unsigned long)p); 617 615 cpwd_timer.expires = WD_BTIMEOUT; 618 616 619 617 pr_info("PLD defect workaround enabled for model %s\n",