Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213964
b: refs/heads/master
c: 84c164a
h: refs/heads/master
v: v3
  • Loading branch information
John W. Linville committed Aug 16, 2010
1 parent b9d2f88 commit acacc2a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 13eb670c104e15e06d38f3a210cfaf467a9c66de
refs/heads/master: 84c164a34ffe67908a932a2d641ec1a80c2d5435
9 changes: 7 additions & 2 deletions trunk/drivers/net/wireless/b43/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -4255,6 +4255,10 @@ static void b43_wireless_core_exit(struct b43_wldev *dev)
B43_WARN_ON(dev && b43_status(dev) > B43_STAT_INITIALIZED);
if (!dev || b43_status(dev) != B43_STAT_INITIALIZED)
return;

/* Unregister HW RNG driver */
b43_rng_exit(dev->wl);

b43_set_status(dev, B43_STAT_UNINIT);

/* Stop the microcode PSM. */
Expand Down Expand Up @@ -4384,6 +4388,9 @@ static int b43_wireless_core_init(struct b43_wldev *dev)

b43_set_status(dev, B43_STAT_INITIALIZED);

/* Register HW RNG driver */
b43_rng_init(dev->wl);

out:
return err;

Expand Down Expand Up @@ -4989,7 +4996,6 @@ static int b43_probe(struct ssb_device *dev, const struct ssb_device_id *id)
if (err)
goto err_one_core_detach;
b43_leds_register(wl->current_dev);
b43_rng_init(wl);
}

out:
Expand Down Expand Up @@ -5025,7 +5031,6 @@ static void b43_remove(struct ssb_device *dev)
b43_one_core_detach(dev);

if (list_empty(&wl->devlist)) {
b43_rng_exit(wl);
b43_leds_unregister(wl);
/* Last core on the chip unregistered.
* We can destroy common struct b43_wl.
Expand Down

0 comments on commit acacc2a

Please sign in to comment.