software/drivers/sd8887/src/wlan/mlinux/moal_sdio_mmc.c
/**
 *  @brief This function de-registers the device
 *
 *  @param handle A pointer to moal_handle structure
 *  @return         N/A
 */
@brief This function de-registers the device
@param handle A pointer to moal_handle structure
@return         N/A
@brief This function de - registers the device @param handle A pointer to moal_handle structure @return N / A
void
woal_unregister_dev(moal_handle *handle)
{
	ENTER();
	if (handle->card) {
		sdio_claim_host(((struct sdio_mmc_card *)handle->card)->func);
#ifdef SDIO_OOB_IRQ
		mrvl_sdio_release_irq(((struct sdio_mmc_card *)handle->card)->
				      func);
#else
		sdio_release_irq(((struct sdio_mmc_card *)handle->card)->func);
#endif
		sdio_disable_func(((struct sdio_mmc_card *)handle->card)->func);
		sdio_release_host(((struct sdio_mmc_card *)handle->card)->func);
		sdio_set_drvdata(((struct sdio_mmc_card *)handle->card)->func,
				 NULL);
		GPIO_PORT_TO_LOW();
		PRINTM(MWARN, "Making the sdio dev card as NULL\n");
	}
	LEAVE();
}
void woal_unregister_dev ( moal_handle * handle ) { ENTER ( ) ; if ( handle -> card ) { sdio_claim_host ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func ) ; #ifdef SDIO_OOB_IRQ mrvl_sdio_release_irq ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func ) ; #else sdio_release_irq ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func ) ; #endif sdio_disable_func ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func ) ; sdio_release_host ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func ) ; sdio_set_drvdata ( ( ( struct sdio_mmc_card * ) handle -> card ) -> func , NULL ) ; GPIO_PORT_TO_LOW ( ) ; PRINTM ( MWARN , " \n " ) ; } LEAVE ( ) ; }
@brief This function de-registers the device
  @param handle A pointer to moal_handle structure
  @return         N/A
@brief This function de - registers the device @param handle A pointer to moal_handle structure @return N / A
/* Release the SDIO IRQ */