class_simple_device_add(capi_class, MKDEV(capi_major, 0), NULL, "capi"); 
class_device_create(capi_class, MKDEV(capi_major, 0), NULL, "capi"); 
static int __init capi_init(void){	char *p;	char *compileinfo;	if ((p = strchr(revision, ':')) != 0 && p[1]) {		strlcpy(rev, p + 2, sizeof(rev));		if ((p = strchr(rev, '$')) != 0 && p > rev)		   *(p-1) = 0;	} else		strcpy(rev, "1.0");	if (register_chrdev(capi_major, "capi20", &capi_fops)) {		printk(KERN_ERR "capi20: unable to get major %d\n", capi_major);		return -EIO;	}	capi_class = class_simple_create(THIS_MODULE, "capi");	if (IS_ERR(capi_class)) {		unregister_chrdev(capi_major, "capi20");		return PTR_ERR(capi_class);	}	class_simple_device_add(capi_class, MKDEV(capi_major, 0), NULL, "capi");	devfs_mk_cdev(MKDEV(capi_major, 0), S_IFCHR | S_IRUSR | S_IWUSR,			"isdn/capi20");#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE	if (capinc_tty_init() < 0) {		class_simple_device_remove(MKDEV(capi_major, 0));		class_simple_destroy(capi_class);		unregister_chrdev(capi_major, "capi20");		return -ENOMEM;	}#endif /* CONFIG_ISDN_CAPI_MIDDLEWARE */	proc_init();#ifdef CONFIG_ISDN_CAPI_MIDDLEWARE#if defined(CONFIG_ISDN_CAPI_CAPIFS) || defined(CONFIG_ISDN_CAPI_CAPIFS_MODULE)        compileinfo = " (middleware+capifs)";#else        compileinfo = " (no capifs)";#endif#else        compileinfo = " (no middleware)";#endif	printk(KERN_NOTICE "capi20: Rev %s: started up with major %d%s\n",				rev, capi_major, compileinfo);	return 0;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/56b2293595b2eb52cc2aa2baf92c6cfa8265f9d5/capi.c/buggy/drivers/isdn/capi/capi.c