Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350777
b: refs/heads/master
c: 9d15a3b
h: refs/heads/master
i:
  350775: 296046c
v: v3
  • Loading branch information
Anatolij Gustschin authored and Grant Likely committed Feb 5, 2013
1 parent bb2aa91 commit fe9cfce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 12 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: 2deff8d602e8c9a2cab4b070be829294e1211f2c
refs/heads/master: 9d15a3bac39e0a7945c463c26fd25c1c58280c68
16 changes: 5 additions & 11 deletions trunk/drivers/spi/spi-mpc512x-psc.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,17 +522,11 @@ static int mpc512x_psc_spi_of_probe(struct platform_device *op)
regaddr64 = of_translate_address(op->dev.of_node, regaddr_p);

/* get PSC id (0..11, used by port_config) */
if (op->dev.platform_data == NULL) {
const u32 *psc_nump;

psc_nump = of_get_property(op->dev.of_node, "cell-index", NULL);
if (!psc_nump || *psc_nump > 11) {
dev_err(&op->dev, "mpc512x_psc_spi: Device node %s "
"has invalid cell-index property\n",
op->dev.of_node->full_name);
return -EINVAL;
}
id = *psc_nump;
id = of_alias_get_id(op->dev.of_node, "spi");
if (id < 0) {
dev_err(&op->dev, "no alias id for %s\n",
op->dev.of_node->full_name);
return id;
}

return mpc512x_psc_spi_do_probe(&op->dev, (u32) regaddr64, (u32) size64,
Expand Down

0 comments on commit fe9cfce

Please sign in to comment.