ipmi_class = class_simple_create(THIS_MODULE, "ipmi"); 
ipmi_class = class_create(THIS_MODULE, "ipmi"); 
static __init int init_ipmi_devintf(void){	int rv;	if (ipmi_major < 0)		return -EINVAL;	printk(KERN_INFO "ipmi device interface version "	       IPMI_DEVINTF_VERSION "\n");	ipmi_class = class_simple_create(THIS_MODULE, "ipmi");	if (IS_ERR(ipmi_class)) {		printk(KERN_ERR "ipmi: can't register device class\n");		return PTR_ERR(ipmi_class);	}	rv = register_chrdev(ipmi_major, DEVICE_NAME, &ipmi_fops);	if (rv < 0) {		class_simple_destroy(ipmi_class);		printk(KERN_ERR "ipmi: can't get major %d\n", ipmi_major);		return rv;	}	if (ipmi_major == 0) {		ipmi_major = rv;	}	devfs_mk_dir(DEVICE_NAME);	rv = ipmi_smi_watcher_register(&smi_watcher);	if (rv) {		unregister_chrdev(ipmi_major, DEVICE_NAME);		class_simple_destroy(ipmi_class);		printk(KERN_WARNING "ipmi: can't register smi watcher\n");		return rv;	}	return 0;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/eb51b65005737b777e0709683b061d5f82aefd97/ipmi_devintf.c/clean/drivers/char/ipmi/ipmi_devintf.c