Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 364226
b: refs/heads/master
c: 6982a39
h: refs/heads/master
v: v3
  • Loading branch information
Jiri Slaby authored and Greg Kroah-Hartman committed Mar 18, 2013
1 parent c466774 commit f544a5d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6865ff222ccab371c04afce17aec1f7d70b17dbc
refs/heads/master: 6982a398426a22166eaf049b79544536fdd6429f
14 changes: 5 additions & 9 deletions trunk/drivers/tty/serial/msm_smd_tty.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ static void smd_tty_notify(void *priv, unsigned event)

static int smd_tty_port_activate(struct tty_port *tport, struct tty_struct *tty)
{
struct smd_tty_info *info = container_of(tport, struct smd_tty_info,
port);
int i, res = 0;
int n = tty->index;
const char *name = NULL;
struct smd_tty_info *info = smd_tty + n;

for (i = 0; i < smd_tty_channels_len; i++) {
if (smd_tty_channels[i].id == n) {
if (smd_tty_channels[i].id == tty->index) {
name = smd_tty_channels[i].name;
break;
}
Expand All @@ -117,17 +117,13 @@ static int smd_tty_port_activate(struct tty_port *tport, struct tty_struct *tty)

static void smd_tty_port_shutdown(struct tty_port *tport)
{
struct smd_tty_info *info;
struct tty_struct *tty = tty_port_tty_get(tport);
struct smd_tty_info *info = container_of(tport, struct smd_tty_info,
port);

info = tty->driver_data;
if (info->ch) {
smd_close(info->ch);
info->ch = 0;
}

tty->driver_data = 0;
tty_kref_put(tty);
}

static int smd_tty_open(struct tty_struct *tty, struct file *f)
Expand Down

0 comments on commit f544a5d

Please sign in to comment.