Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325245
b: refs/heads/master
c: 2afb41d
h: refs/heads/master
i:
  325243: 0ad6ee3
v: v3
  • Loading branch information
Jens Taprogge authored and Greg Kroah-Hartman committed Sep 12, 2012
1 parent a7421ab commit 61ba964
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 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: 1adda49706ff832e9fc4f4bcb62d38285145307c
refs/heads/master: 2afb41d9d30d33504c47a5dda3eeade692f388dc
8 changes: 7 additions & 1 deletion trunk/drivers/staging/ipack/devices/ipoctal.c
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,8 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
ipoctal->tty_drv = tty;

for (i = 0; i < NR_CHANNELS; i++) {
struct device *tty_dev;

channel = &ipoctal->channel[i];
tty_port_init(&channel->tty_port);
tty_port_alloc_xmit_buf(&channel->tty_port);
Expand All @@ -450,7 +452,11 @@ static int ipoctal_inst_slot(struct ipoctal *ipoctal, unsigned int bus_nr,
channel->pointer_read = 0;
channel->pointer_write = 0;
channel->nb_bytes = 0;
tty_register_device(tty, i, NULL);
tty_dev = tty_register_device(tty, i, NULL);
if (IS_ERR(tty_dev)) {
dev_err(&ipoctal->dev->dev, "Failed to register tty device.\n");
continue;
}

/*
* Enable again the RX. TX will be enabled when
Expand Down

0 comments on commit 61ba964

Please sign in to comment.