From: Bruno Carvalho <brunocarvalhofarias@gmail.com>
To: gregkh@linuxfoundation.org
Cc: ciorneiioana@gmail.com, amitoj1606@gmail.com,
s.demeszko@wireless-instruments.com, shraddha.6596@gmail.com,
bhumirks@gmail.com, shivanib134@gmail.com,
mahfouz.saif.elyazal@gmail.com, tj@kernel.org,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org,
Bruno Carvalho <brunocarvalhofarias@gmail.com>
Subject: [PATCH] staging/gdm724x: Use tty_alloc_driver instead of alloc_tty_driver
Date: Sat, 7 May 2016 23:29:14 -0400 [thread overview]
Message-ID: <1462678154-17462-1-git-send-email-brunocarvalhofarias@gmail.com> (raw)
- alloc_tty_driver() is deprecated. So it is replaced by tty_alloc_driver()
Signed-off-by: Bruno Carvalho <brunocarvalhofarias@gmail.com>
---
drivers/staging/gdm724x/gdm_tty.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/drivers/staging/gdm724x/gdm_tty.c b/drivers/staging/gdm724x/gdm_tty.c
index eb7e252..c0888f5 100644
--- a/drivers/staging/gdm724x/gdm_tty.c
+++ b/drivers/staging/gdm724x/gdm_tty.c
@@ -306,7 +306,9 @@ int register_lte_tty_driver(void)
int ret;
for (i = 0; i < TTY_MAX_COUNT; i++) {
- tty_driver = alloc_tty_driver(GDM_TTY_MINOR);
+ tty_driver = tty_alloc_driver(GDM_TTY_MINOR,
+ TTY_DRIVER_REAL_RAW |
+ TTY_DRIVER_DYNAMIC_DEV);
if (!tty_driver)
return -ENOMEM;
--
2.1.4
next reply other threads:[~2016-05-08 3:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-05-08 3:29 Bruno Carvalho [this message]
2016-05-09 12:24 ` 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=1462678154-17462-1-git-send-email-brunocarvalhofarias@gmail.com \
--to=brunocarvalhofarias@gmail.com \
--cc=amitoj1606@gmail.com \
--cc=bhumirks@gmail.com \
--cc=ciorneiioana@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mahfouz.saif.elyazal@gmail.com \
--cc=s.demeszko@wireless-instruments.com \
--cc=shivanib134@gmail.com \
--cc=shraddha.6596@gmail.com \
--cc=tj@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
all inboxes | Powered by JetHome®