class_device_create(pt_class, MKDEV(major, unit), 
class_device_create(pt_class, NULL, MKDEV(major, unit), 
static int __init pt_init(void){	int unit, err = 0;	if (disable) {		err = -1;		goto out;	}	if (pt_detect()) {		err = -1;		goto out;	}	if (register_chrdev(major, name, &pt_fops)) {		printk("pt_init: unable to get major number %d\n", major);		for (unit = 0; unit < PT_UNITS; unit++)			if (pt[unit].present)				pi_release(pt[unit].pi);		err = -1;		goto out;	}	pt_class = class_create(THIS_MODULE, "pt");	if (IS_ERR(pt_class)) {		err = PTR_ERR(pt_class);		goto out_chrdev;	}	devfs_mk_dir("pt");	for (unit = 0; unit < PT_UNITS; unit++)		if (pt[unit].present) {			class_device_create(pt_class, MKDEV(major, unit),					NULL, "pt%d", unit);			err = devfs_mk_cdev(MKDEV(major, unit),				      S_IFCHR | S_IRUSR | S_IWUSR,				      "pt/%d", unit);			if (err) {				class_device_destroy(pt_class, MKDEV(major, unit));				goto out_class;			}			class_device_create(pt_class, MKDEV(major, unit + 128),					NULL, "pt%dn", unit);			err = devfs_mk_cdev(MKDEV(major, unit + 128),				      S_IFCHR | S_IRUSR | S_IWUSR,				      "pt/%dn", unit);			if (err) {				class_device_destroy(pt_class, MKDEV(major, unit + 128));				goto out_class;			}		}	goto out;out_class:	class_destroy(pt_class);out_chrdev:	unregister_chrdev(major, "pt");out:	return err;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/pt.c/clean/drivers/block/paride/pt.c