Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350747
b: refs/heads/master
c: bb29785
h: refs/heads/master
i:
  350745: dc97019
  350743: a5d38f6
v: v3
  • Loading branch information
Grant Likely committed Feb 5, 2013
1 parent 652746b commit 07710be
Show file tree
Hide file tree
Showing 2 changed files with 4 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: cf9c86efecf9510e62388fd174cf607671c59fa3
refs/heads/master: bb29785e0d6d150181704be2efcc3141044625e2
3 changes: 3 additions & 0 deletions trunk/drivers/spi/spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1135,6 +1135,9 @@ int spi_register_master(struct spi_master *master)
if (master->num_chipselect == 0)
return -EINVAL;

if ((master->bus_num < 0) && master->dev.of_node)
master->bus_num = of_alias_get_id(master->dev.of_node, "spi");

/* convention: dynamically assigned bus IDs count down from the max */
if (master->bus_num < 0) {
/* FIXME switch to an IDR based scheme, something like
Expand Down

0 comments on commit 07710be

Please sign in to comment.