class_simple_device_remove(MKDEV(SCSI_CHANGER_MAJOR,ch->minor)); 
class_device_destroy(ch_sysfs_class, MKDEV(SCSI_CHANGER_MAJOR,ch->minor)); 
static int ch_remove(struct device *dev){	struct scsi_device *sd = to_scsi_device(dev);	scsi_changer *tmp, *ch;	spin_lock(&ch_devlist_lock);	ch = NULL;	list_for_each_entry(tmp,&ch_devlist,list) {		if (tmp->device == sd)			ch = tmp;	}	BUG_ON(NULL == ch);	list_del(&ch->list);	spin_unlock(&ch_devlist_lock);	class_simple_device_remove(MKDEV(SCSI_CHANGER_MAJOR,ch->minor));	devfs_remove(ch->name);	kfree(ch->dt);	kfree(ch);	ch_devcount--;	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/21feb5ccd5d054b8a17fe86b1b5df1e16809df64/ch.c/clean/drivers/scsi/ch.c