/* We need more than num_vterms adapters due to hotplug additions. */ 
/* We need more than hvc_count adapters due to hotplug additions. */ 
int __init hvc_init(void){	int rc;	/* We need more than num_vterms adapters due to hotplug additions. */	hvc_driver = alloc_tty_driver(HVC_ALLOC_TTY_ADAPTERS);	/* hvc_driver = alloc_tty_driver(num_vterms); */	if (!hvc_driver)		return -ENOMEM;	hvc_driver->owner = THIS_MODULE;	hvc_driver->devfs_name = "hvc/";	hvc_driver->driver_name = "hvc";	hvc_driver->name = "hvc";	hvc_driver->major = HVC_MAJOR;	hvc_driver->minor_start = HVC_MINOR;	hvc_driver->type = TTY_DRIVER_TYPE_SYSTEM;	hvc_driver->init_termios = tty_std_termios;	hvc_driver->flags = TTY_DRIVER_REAL_RAW;	tty_set_operations(hvc_driver, &hvc_ops);	if (tty_register_driver(hvc_driver))		panic("Couldn't register hvc console driver\n");	/* Always start the kthread because there can be hotplug vty adapters	 * added later. */	hvc_task = kthread_run(khvcd, NULL, "khvcd");	if (IS_ERR(hvc_task)) {		panic("Couldn't create kthread for console.\n");		put_tty_driver(hvc_driver);		return -EIO;	}	/* Register as a vio device to receive callbacks */	rc = vio_register_driver(&hvc_vio_driver);	return rc;}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/5f6d9c072df162a8601a09e6c63fd0e4f5aecd06/hvc_console.c/buggy/drivers/char/hvc_console.c