Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
eca17c52
Commit
eca17c52
authored
Aug 30, 2014
by
Greg Kroah-Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
greybus: uart: tie into gb core properly
parent
56f10573
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
drivers/staging/greybus/uart-gb.c
drivers/staging/greybus/uart-gb.c
+4
-4
No files found.
drivers/staging/greybus/uart-gb.c
View file @
eca17c52
...
...
@@ -412,7 +412,7 @@ int gb_tty_probe(struct greybus_device *gdev,
/* FIXME - allocate gb buffers */
g
reybus_set_drvdata
(
gdev
,
gb_tty
)
;
g
dev
->
gb_tty
=
gb_tty
;
tty_dev
=
tty_port_register_device
(
&
gb_tty
->
port
,
gb_tty_driver
,
minor
,
&
gdev
->
dev
);
...
...
@@ -423,14 +423,14 @@ int gb_tty_probe(struct greybus_device *gdev,
return
0
;
error:
g
reybus_set_drvdata
(
gdev
,
NULL
)
;
g
dev
->
gb_tty
=
NULL
;
release_minor
(
gb_tty
);
return
retval
;
}
void
gb_tty_disconnect
(
struct
greybus_device
*
gdev
)
{
struct
gb_tty
*
gb_tty
=
g
reybus_get_drvdata
(
gdev
)
;
struct
gb_tty
*
gb_tty
=
g
dev
->
gb_tty
;
struct
tty_struct
*
tty
;
if
(
!
gb_tty
)
...
...
@@ -440,7 +440,7 @@ void gb_tty_disconnect(struct greybus_device *gdev)
gb_tty
->
disconnected
=
true
;
wake_up_all
(
&
gb_tty
->
wioctl
);
g
reybus_set_drvdata
(
gdev
,
NULL
)
;
g
dev
->
gb_tty
=
NULL
;
mutex_unlock
(
&
gb_tty
->
mutex
);
tty
=
tty_port_tty_get
(
&
gb_tty
->
port
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment