]> git.baikalelectronics.ru Git - kernel.git/commit
brcmfmac: drop brcmf_bus_detach and inline its code
authorRafał Miłecki <rafal@milecki.pl>
Wed, 18 Jan 2017 10:48:53 +0000 (11:48 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 20 Jan 2017 10:03:56 +0000 (12:03 +0200)
commit5ddf7ee10834d6452a405375b5f7f62c2a84bef9
tree591b9857cc1b04e27421527b9a1ee92a1cb9d12e
parent273249ff1be13ac44842cf604c6d39737c3a06bd
brcmfmac: drop brcmf_bus_detach and inline its code

Driver used to call brcmf_bus_detach only from one place and it already
contained a check for drvr not being NULL. We can get rid of this extra
function, call brcmf_bus_stop directly and simplify the code.
There also isn't brcmf_bus_attach function which one could expect so it
looks more consistent this way.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Arend van Spriel <arend.vanspriel@broadcom.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/broadcom/brcm80211/brcmfmac/core.c