stallion_class = class_simple_create(THIS_MODULE, "staliomem"); 
stallion_class = class_create(THIS_MODULE, "staliomem"); 
static int __init stl_init(void){	int i;	printk(KERN_INFO "%s: version %s\n", stl_drvtitle, stl_drvversion);	stl_initbrds();	stl_serial = alloc_tty_driver(STL_MAXBRDS * STL_MAXPORTS);	if (!stl_serial)		return -1;/* *	Allocate a temporary write buffer. */	stl_tmpwritebuf = (char *) stl_memalloc(STL_TXBUFSIZE);	if (stl_tmpwritebuf == (char *) NULL)		printk("STALLION: failed to allocate memory (size=%d)\n",			STL_TXBUFSIZE);/* *	Set up a character driver for per board stuff. This is mainly used *	to do stats ioctls on the ports. */	if (register_chrdev(STL_SIOMEMMAJOR, "staliomem", &stl_fsiomem))		printk("STALLION: failed to register serial board device\n");	devfs_mk_dir("staliomem");	stallion_class = class_simple_create(THIS_MODULE, "staliomem");	for (i = 0; i < 4; i++) {		devfs_mk_cdev(MKDEV(STL_SIOMEMMAJOR, i),				S_IFCHR|S_IRUSR|S_IWUSR,				"staliomem/%d", i);		class_simple_device_add(stallion_class, MKDEV(STL_SIOMEMMAJOR, i), NULL, "staliomem%d", i);	}	stl_serial->owner = THIS_MODULE;	stl_serial->driver_name = stl_drvname;	stl_serial->name = "ttyE";	stl_serial->devfs_name = "tts/E";	stl_serial->major = STL_SERIALMAJOR;	stl_serial->minor_start = 0;	stl_serial->type = TTY_DRIVER_TYPE_SERIAL;	stl_serial->subtype = SERIAL_TYPE_NORMAL;	stl_serial->init_termios = stl_deftermios;	stl_serial->flags = TTY_DRIVER_REAL_RAW;	tty_set_operations(stl_serial, &stl_ops);	if (tty_register_driver(stl_serial)) {		put_tty_driver(stl_serial);		printk("STALLION: failed to register serial driver\n");		return -1;	}	return(0);}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/ca8eca6884861c1ce294b05aacfdf9045bba9aff/stallion.c/buggy/drivers/char/stallion.c