| 3100 | |
| 3101 | #ifdef CONFIG_NET_CDCMBIM |
| 3102 | static void cdcmbim_uninitialize(FAR struct usbdevclass_driver_s *classdev) |
| 3103 | { |
| 3104 | FAR struct cdcmbim_driver_s *self = |
| 3105 | (FAR struct cdcmbim_driver_s *)classdev; |
| 3106 | int ret; |
| 3107 | |
| 3108 | /* Un-register the CDC/MBIM netdev device */ |
| 3109 | |
| 3110 | ret = netdev_lower_unregister(&self->ncmdriver.dev); |
| 3111 | if (ret < 0) |
| 3112 | { |
| 3113 | nerr("ERROR: netdev_lower_unregister failed. ret: %d\n", ret); |
| 3114 | } |
| 3115 | |
| 3116 | # ifndef CONFIG_CDCNCM_COMPOSITE |
| 3117 | usbdev_unregister(&self->ncmdriver.usbdev); |
| 3118 | # endif |
| 3119 | |
| 3120 | /* And free the driver structure */ |
| 3121 | |
| 3122 | nxmutex_destroy(&self->lock); |
| 3123 | nxsem_destroy(&self->read_sem); |
| 3124 | kmm_free(self); |
| 3125 | } |
| 3126 | #endif |
| 3127 | |
| 3128 | #ifndef CONFIG_CDCNCM_COMPOSITE |
nothing calls this directly
no test coverage detected