staging: rtl8188eu:Assign RTL8188E to padapter->chip_type directly
authornavin patidar <navin.patidar@gmail.com>
Tue, 27 May 2014 15:35:44 +0000 (21:05 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 19:03:41 +0000 (12:03 -0700)
Assign RTL8188E to padapter->chip_type directly instead of calling
chip_by_usb_id() function to do same.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/os_dep/usb_intf.c

index a368aa92b259694ac0d7b2a4e4c3fea0d6e31861..fbf967d5b7c452355fddca5d238583ef443e57f4 100644 (file)
@@ -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;