Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 98679
b: refs/heads/master
c: 7ca796f
h: refs/heads/master
i:
  98677: 4669698
  98675: f8fa674
  98671: 4ef01b1
v: v3
  • Loading branch information
Guennadi Liakhovetski authored and Linus Torvalds committed Jul 4, 2008
1 parent 31d6387 commit 68311c9
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 69d44a1835ec8163a82c4ee57367f87ae0f85c2e
refs/heads/master: 7ca796f492a11f9408e661c8f22cd8c4f486b8e5
4 changes: 3 additions & 1 deletion trunk/drivers/serial/serial_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1991,7 +1991,9 @@ struct uart_match {
static int serial_match_port(struct device *dev, void *data)
{
struct uart_match *match = data;
dev_t devt = MKDEV(match->driver->major, match->driver->minor) + match->port->line;
struct tty_driver *tty_drv = match->driver->tty_driver;
dev_t devt = MKDEV(tty_drv->major, tty_drv->minor_start) +
match->port->line;

return dev->devt == devt; /* Actually, only one tty per port */
}
Expand Down

0 comments on commit 68311c9

Please sign in to comment.