ch_sysfs_class = class_simple_create(THIS_MODULE, "scsi_changer"); 
ch_sysfs_class = class_create(THIS_MODULE, "scsi_changer"); 
static int __init init_ch_module(void){	int rc;		printk(KERN_INFO "SCSI Media Changer driver v" VERSION " \n");        ch_sysfs_class = class_simple_create(THIS_MODULE, "scsi_changer");        if (IS_ERR(ch_sysfs_class)) {		rc = PTR_ERR(ch_sysfs_class);		return rc;        }	rc = register_chrdev(SCSI_CHANGER_MAJOR,"ch",&changer_fops);	if (rc < 0) {		printk("Unable to get major %d for SCSI-Changer\n",		       SCSI_CHANGER_MAJOR);		goto fail1;	}	rc = scsi_register_driver(&ch_template.gendrv);	if (rc < 0)		goto fail2;	return 0; fail2:	unregister_chrdev(SCSI_CHANGER_MAJOR, "ch"); fail1:	class_simple_destroy(ch_sysfs_class);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/21feb5ccd5d054b8a17fe86b1b5df1e16809df64/ch.c/clean/drivers/scsi/ch.c