From: navin patidar Date: Tue, 27 May 2014 15:35:44 +0000 (+0530) Subject: staging: rtl8188eu:Assign RTL8188E to padapter->chip_type directly X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=baf3a0112c242a748aaa2d59f3365193adb23f78;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git staging: rtl8188eu:Assign RTL8188E to padapter->chip_type directly Assign RTL8188E to padapter->chip_type directly instead of calling chip_by_usb_id() function to do same. Signed-off-by: navin patidar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/os_dep/usb_intf.c b/drivers/staging/rtl8188eu/os_dep/usb_intf.c index a368aa92b259..fbf967d5b7c4 100644 --- a/drivers/staging/rtl8188eu/os_dep/usb_intf.c +++ b/drivers/staging/rtl8188eu/os_dep/usb_intf.c @@ -546,11 +546,8 @@ static struct adapter *rtw_usb_if1_init(struct dvobj_priv *dvobj, dvobj->if1 = padapter; padapter->bDriverStopped = true; - padapter->hw_init_mutex = &usb_drv->hw_init_mutex; - - /* step 1-1., decide the chip_type via vid/pid */ - chip_by_usb_id(padapter, pdid); + padapter->chip_type = RTL8188E; if (rtw_handle_dualmac(padapter, 1) != _SUCCESS) goto free_adapter;