[PATCH] bcm43xx: Correct out of sequence initialization step
authorLarry Finger <Larry.Finger@lwfinger.net>
Mon, 11 Sep 2006 20:46:26 +0000 (16:46 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 11 Sep 2006 23:34:01 +0000 (19:34 -0400)
This patch fixes an out of sequence step in the bcm43xx_init_board
routine for bcm43xx-softmac.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/bcm43xx/bcm43xx_main.c

index 96a5fde..699b74d 100644 (file)
@@ -3541,10 +3541,10 @@ static int bcm43xx_init_board(struct bcm43xx_private *bcm)
        err = bcm43xx_sysfs_register(bcm);
        if (err)
                goto err_wlshutdown;
-       bcm43xx_periodic_tasks_setup(bcm);
        err = bcm43xx_rng_init(bcm);
        if (err)
                goto err_sysfs_unreg;
+       bcm43xx_periodic_tasks_setup(bcm);
 
        /*FIXME: This should be handled by softmac instead. */
        schedule_work(&bcm->softmac->associnfo.work);