Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168976
b: refs/heads/master
c: 8301d38
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Nov 24, 2009
1 parent b76cc30 commit a3f4bb8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4e68e188411ea98e40309700cf0c89ad4469ac1d
refs/heads/master: 8301d386afc55c877bafe2c6c7dc75a96ddd2838
10 changes: 10 additions & 0 deletions trunk/drivers/serial/sunsu.c
Original file line number Diff line number Diff line change
Expand Up @@ -1517,6 +1517,10 @@ static const struct of_device_id su_match[] = {
.name = "serial",
.compatible = "su",
},
{
.type = "serial",
.compatible = "su",
},
{},
};
MODULE_DEVICE_TABLE(of, su_match);
Expand Down Expand Up @@ -1548,6 +1552,12 @@ static int __init sunsu_init(void)
num_uart++;
}
}
for_each_node_by_type(dp, "serial") {
if (of_device_is_compatible(dp, "su")) {
if (su_get_type(dp) == SU_PORT_PORT)
num_uart++;
}
}

if (num_uart) {
err = sunserial_register_minors(&sunsu_reg, num_uart);
Expand Down

0 comments on commit a3f4bb8

Please sign in to comment.