From: Greg KH <greg@kroah.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] minor TTY changes for 2.5.53
Date: Mon, 30 Dec 2002 01:04:09 -0800 [thread overview]
Message-ID: <20021230090409.GC29926@kroah.com> (raw)
In-Reply-To: <20021230090303.GB29926@kroah.com>
ChangeSet 1.956.3.2, 2002/12/29 23:34:36-08:00, greg@kroah.com
TTY: add tty_devclass to the tty core.
diff -Nru a/drivers/char/tty_io.c b/drivers/char/tty_io.c
--- a/drivers/char/tty_io.c Mon Dec 30 01:04:47 2002
+++ b/drivers/char/tty_io.c Mon Dec 30 01:04:47 2002
@@ -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 @@
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,
diff -Nru a/include/linux/tty_driver.h b/include/linux/tty_driver.h
--- a/include/linux/tty_driver.h Mon Dec 30 01:04:47 2002
+++ b/include/linux/tty_driver.h Mon Dec 30 01:04:47 2002
@@ -227,4 +227,6 @@
#define SERIAL_TYPE_NORMAL 1
#define SERIAL_TYPE_CALLOUT 2
+extern struct device_class tty_devclass;
+
#endif /* #ifdef _LINUX_TTY_DRIVER_H */
next prev parent reply other threads:[~2002-12-30 9:00 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-30 9:02 [BK PATCH] minor TTY changes for 2.5.53 Greg KH
2002-12-30 9:03 ` [PATCH] " Greg KH
2002-12-30 9:04 ` Greg KH [this message]
2002-12-30 9:04 ` Greg KH
2002-12-30 9:06 ` Greg KH
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20021230090409.GC29926@kroah.com \
--to=greg@kroah.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox