cosa_class = class_simple_create(THIS_MODULE, "cosa"); 
cosa_class = class_create(THIS_MODULE, "cosa"); 
static int __init cosa_init(void){	int i, err = 0;	printk(KERN_INFO "cosa v1.08 (c) 1997-2000 Jan Kasprzak <kas@fi.muni.cz>\n");#ifdef CONFIG_SMP	printk(KERN_INFO "cosa: SMP found. Please mail any success/failure reports to the author.\n");#endif	if (cosa_major > 0) {		if (register_chrdev(cosa_major, "cosa", &cosa_fops)) {			printk(KERN_WARNING "cosa: unable to get major %d\n",				cosa_major);			err = -EIO;			goto out;		}	} else {		if (!(cosa_major=register_chrdev(0, "cosa", &cosa_fops))) {			printk(KERN_WARNING "cosa: unable to register chardev\n");			err = -EIO;			goto out;		}	}	for (i=0; i<MAX_CARDS; i++)		cosa_cards[i].num = -1;	for (i=0; io[i] != 0 && i < MAX_CARDS; i++)		cosa_probe(io[i], irq[i], dma[i]);	if (!nr_cards) {		printk(KERN_WARNING "cosa: no devices found.\n");		unregister_chrdev(cosa_major, "cosa");		err = -ENODEV;		goto out;	}	devfs_mk_dir("cosa");	cosa_class = class_simple_create(THIS_MODULE, "cosa");	if (IS_ERR(cosa_class)) {		err = PTR_ERR(cosa_class);		goto out_chrdev;	}	for (i=0; i<nr_cards; i++) {		class_simple_device_add(cosa_class, MKDEV(cosa_major, i),				NULL, "cosa%d", i);		err = devfs_mk_cdev(MKDEV(cosa_major, i),				S_IFCHR|S_IRUSR|S_IWUSR,				"cosa/%d", i);		if (err) {			class_simple_device_remove(MKDEV(cosa_major, i));			goto out_chrdev;				}	}	err = 0;	goto out;	out_chrdev:	unregister_chrdev(cosa_major, "cosa");out:	return err;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/56b2293595b2eb52cc2aa2baf92c6cfa8265f9d5/cosa.c/clean/drivers/net/wan/cosa.c