staging: rtl8188eu: rtw_usb_if1_init needs no dvobj parameter
rtw_usb_if1_init receives a pointer to struct usb_interface. dvobj is the interface data for this interface. Signed-off-by: Martin Kaiser <martin@kaiser.cx> Link: https://lore.kernel.org/r/20210407170531.29356-8-martin@kaiser.cx Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
78ea2e2447
commit
57ae96149e
@ -322,9 +322,9 @@ static int rtw_resume(struct usb_interface *pusb_intf)
|
||||
* We accept the new device by returning 0.
|
||||
*/
|
||||
|
||||
static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj,
|
||||
struct usb_interface *pusb_intf)
|
||||
static struct adapter *rtw_usb_if1_init(struct usb_interface *pusb_intf)
|
||||
{
|
||||
struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
|
||||
struct adapter *padapter;
|
||||
struct net_device *pnetdev;
|
||||
struct net_device *pmondev;
|
||||
@ -460,7 +460,7 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
|
||||
goto exit;
|
||||
}
|
||||
|
||||
if (!rtw_usb_if1_init(dvobj, pusb_intf)) {
|
||||
if (!rtw_usb_if1_init(pusb_intf)) {
|
||||
pr_debug("rtw_usb_if1_init failed\n");
|
||||
goto free_dvobj;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user