Parcourir la source

qcacmn: usb: Remove usb_set_intfdata()

Remove usb_set_intfdata() as usb interface private data is not being
used in driver.

Change-Id: I65f718b8abe2f33ec7f180ec265baab9772d30d0
CRs-Fixed: 2427944
Ajit Pal Singh il y a 6 ans
Parent
commit
5fc9a33c2e
1 fichiers modifiés avec 0 ajouts et 3 suppressions
  1. 0 3
      hif/src/usb/hif_usb.c

+ 0 - 3
hif/src/usb/hif_usb.c

@@ -347,8 +347,6 @@ void hif_usb_device_deinit(struct hif_usb_softc *sc)
 
 	usb_hif_cleanup_pipe_resources(device);
 
-	usb_set_intfdata(device->interface, NULL);
-
 	if (device->diag_cmd_buffer)
 		qdf_mem_free(device->diag_cmd_buffer);
 
@@ -377,7 +375,6 @@ QDF_STATUS hif_usb_device_init(struct hif_usb_softc *sc)
 
 	do {
 
-		usb_set_intfdata(interface, device);
 		qdf_spinlock_create(&(device->cs_lock));
 		qdf_spinlock_create(&(device->rx_lock));
 		qdf_spinlock_create(&(device->tx_lock));