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:
Martin Kaiser 2021-04-07 19:05:29 +02:00 committed by Greg Kroah-Hartman
parent 78ea2e2447
commit 57ae96149e

View File

@ -322,9 +322,9 @@ static int rtw_resume(struct usb_interface *pusb_intf)
* We accept the new device by returning 0. * We accept the new device by returning 0.
*/ */
static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, static struct adapter *rtw_usb_if1_init(struct usb_interface *pusb_intf)
struct usb_interface *pusb_intf)
{ {
struct dvobj_priv *dvobj = usb_get_intfdata(pusb_intf);
struct adapter *padapter; struct adapter *padapter;
struct net_device *pnetdev; struct net_device *pnetdev;
struct net_device *pmondev; struct net_device *pmondev;
@ -460,7 +460,7 @@ static int rtw_drv_init(struct usb_interface *pusb_intf, const struct usb_device
goto exit; 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"); pr_debug("rtw_usb_if1_init failed\n");
goto free_dvobj; goto free_dvobj;
} }