Commit 1d1a73cc authored by Michael Buesch's avatar Michael Buesch Committed by John W. Linville

[PATCH] bcm43xx: add assert(bcm->initialized) to periodic_tasks_setup().

Signed-off-by: default avatarMichael Buesch <mbuesch@freenet.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent cad2b31a
...@@ -3366,6 +3366,7 @@ static void bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm) ...@@ -3366,6 +3366,7 @@ static void bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm)
{ {
struct timer_list *timer = &(bcm->periodic_tasks); struct timer_list *timer = &(bcm->periodic_tasks);
assert(bcm->initialized);
setup_timer(timer, setup_timer(timer,
bcm43xx_periodic_task_handler, bcm43xx_periodic_task_handler,
(unsigned long)bcm); (unsigned long)bcm);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment