/* This function is called by tty_register_driver() to handle registering the driver's /proc handler into /proc/tty/driver/<foo>  */
void proc_tty_register_driver(struct tty_driver *driver)
/* This function is called by tty_register_driver() to handle registering the driver's /proc handler into /proc/tty/driver/<foo>  */
void proc_tty_register_driver(struct tty_driver *driver)
{
	struct proc_dir_entry *ent;
	if (!driver->driver_name || driver->proc_entry ||
	    !driver->ops->proc_fops)
		return;
	ent = proc_create_data(driver->driver_name, 0, proc_tty_driver,
			       driver->ops->proc_fops, driver);
	driver->proc_entry = ent;
}