class_device_create(ppp_class, MKDEV(PPP_MAJOR, 0), NULL, "ppp"); 
class_device_create(ppp_class, NULL, MKDEV(PPP_MAJOR, 0), NULL, "ppp"); 
static int __init ppp_init(void){	int err;	printk(KERN_INFO "PPP generic driver version " PPP_VERSION "\n");	err = register_chrdev(PPP_MAJOR, "ppp", &ppp_device_fops);	if (!err) {		ppp_class = class_create(THIS_MODULE, "ppp");		if (IS_ERR(ppp_class)) {			err = PTR_ERR(ppp_class);			goto out_chrdev;		}		class_device_create(ppp_class, MKDEV(PPP_MAJOR, 0), NULL, "ppp");		err = devfs_mk_cdev(MKDEV(PPP_MAJOR, 0),				S_IFCHR|S_IRUSR|S_IWUSR, "ppp");		if (err)			goto out_class;	}out:	if (err)		printk(KERN_ERR "failed to register PPP device (%d)\n", err);	return err;out_class:	class_device_destroy(ppp_class, MKDEV(PPP_MAJOR,0));	class_destroy(ppp_class);out_chrdev:	unregister_chrdev(PPP_MAJOR, "ppp");	goto out;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/53f4654272df7c51064825024340554b39c9efba/ppp_generic.c/buggy/drivers/net/ppp_generic.c