brcmfmac: remove .init() callback for internal bus interface
The .init() callback was the first function called by the common bus function brcmf_bus_start(). Given that it is not really necessary and the bus layer can call it before calling the brcmf_bus_start() function. Reviewed-by: Daniel (Deognyoun) Kim <dekim@broadcom.com> Reviewed-by: Franky Lin <frankyl@broadcom.com> Reviewed-by: Hante Meuleman <meuleman@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:

committed by
John W. Linville

parent
5a394eba4b
commit
f33d7a9141
@@ -1222,7 +1222,6 @@ error:
|
||||
|
||||
static struct brcmf_bus_ops brcmf_usb_bus_ops = {
|
||||
.txdata = brcmf_usb_tx,
|
||||
.init = brcmf_usb_up,
|
||||
.stop = brcmf_usb_down,
|
||||
.txctl = brcmf_usb_tx_ctlpkt,
|
||||
.rxctl = brcmf_usb_rx_ctlpkt,
|
||||
@@ -1263,6 +1262,12 @@ static int brcmf_usb_probe_cb(struct brcmf_usbdev_info *devinfo)
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = brcmf_usb_up(dev);
|
||||
if (ret) {
|
||||
brcmf_detach(dev);
|
||||
goto fail;
|
||||
}
|
||||
|
||||
ret = brcmf_bus_start(dev);
|
||||
if (ret) {
|
||||
brcmf_err("dongle is not responding\n");
|
||||
|
Reference in New Issue
Block a user