示例#1
0
文件: ronin.cpp 项目: histat/dc-nx
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);
}