void ronin_close() { #ifdef USE_ARM stop_cdda(); #endif #ifdef __SDCARD__ sd_exit(); #endif }
/* * Terminates a host. */ static void sd_kill(struct sd_host *host) { if (host->refcnt > 0) { sd_printk(KERN_ERR, "hey! card removed while in use!\n"); set_bit(__SD_MEDIA_CHANGED, &host->flags); } sd_exit(host); host->exi_device = NULL; /* release the host immediately when not in use */ if (!host->refcnt) kfree(host); }