[PATCH] bcm43xx: add assert(bcm->initialized) to periodic_tasks_setup().
Signed-off-by: Michael Buesch <mbuesch@freenet.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
cad2b31a76
commit
1d1a73ccdc
|
@ -3366,6 +3366,7 @@ static void bcm43xx_periodic_tasks_setup(struct bcm43xx_private *bcm)
|
|||
{
|
||||
struct timer_list *timer = &(bcm->periodic_tasks);
|
||||
|
||||
assert(bcm->initialized);
|
||||
setup_timer(timer,
|
||||
bcm43xx_periodic_task_handler,
|
||||
(unsigned long)bcm);
|
||||
|
|
Loading…
Reference in a new issue