diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-10-23 17:41:46 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-10-23 17:41:46 +0200 |
commit | 9b34f40c20111ba658f88e1669598db494be1fbc (patch) | |
tree | be98189b178ca63a44c09c8a5e92574a92932b51 /drivers/bcma | |
parent | brcm80211: remove some truely barftastic code (diff) | |
parent | Merge branch 'for-john' of git://git.kernel.org/pub/scm/linux/kernel/git/jber... (diff) | |
download | linux-9b34f40c20111ba658f88e1669598db494be1fbc.tar.xz linux-9b34f40c20111ba658f88e1669598db494be1fbc.zip |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
net/mac80211/mlme.c
Diffstat (limited to 'drivers/bcma')
-rw-r--r-- | drivers/bcma/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/bcma/main.c b/drivers/bcma/main.c index 7f473cf0469e..a9718893000b 100644 --- a/drivers/bcma/main.c +++ b/drivers/bcma/main.c @@ -170,9 +170,10 @@ static int bcma_register_cores(struct bcma_bus *bus) static void bcma_unregister_cores(struct bcma_bus *bus) { - struct bcma_device *core; + struct bcma_device *core, *tmp; - list_for_each_entry(core, &bus->cores, list) { + list_for_each_entry_safe(core, tmp, &bus->cores, list) { + list_del(&core->list); if (core->dev_registered) device_unregister(&core->dev); } |