Commit 6c95cbe9 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

TTY: add tty_devclass to the tty core.

parent 9ac2ca13
......@@ -90,6 +90,7 @@
#include <linux/init.h>
#include <linux/module.h>
#include <linux/smp_lock.h>
#include <linux/device.h>
#include <asm/uaccess.h>
#include <asm/system.h>
......@@ -2271,12 +2272,19 @@ static struct tty_driver dev_console_driver;
extern int vty_init(void);
#endif
struct device_class tty_devclass = {
.name = "tty",
};
EXPORT_SYMBOL(tty_devclass);
/*
* Ok, now we can initialize the rest of the tty devices and can count
* on memory allocations, interrupts etc..
*/
void __init tty_init(void)
{
devclass_register(&tty_devclass);
/*
* dev_tty_driver and dev_console_driver are actually magic
* devices which get redirected at open time. Nevertheless,
......
......@@ -227,4 +227,6 @@ extern struct list_head tty_drivers;
#define SERIAL_TYPE_NORMAL 1
#define SERIAL_TYPE_CALLOUT 2
extern struct device_class tty_devclass;
#endif /* #ifdef _LINUX_TTY_DRIVER_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment