Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 336425
b: refs/heads/master
c: 953e9e9
h: refs/heads/master
i:
  336423: e2ac502
v: v3
  • Loading branch information
Axel Lin authored and Linus Walleij committed Nov 15, 2012
1 parent 19abc3e commit ad39e86
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 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: e7ed671825d7d8ee7225a9e1de997d643e6d5d69
refs/heads/master: 953e9e93862871e005bdcde3b98db822d12185a8
11 changes: 8 additions & 3 deletions trunk/drivers/pinctrl/pinctrl-nomadik.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,9 +1864,14 @@ static int __devinit nmk_pinctrl_probe(struct platform_device *pdev)

if (platid)
version = platid->driver_data;
else if (np)
version = (unsigned int)
of_match_device(nmk_pinctrl_match, &pdev->dev)->data;
else if (np) {
const struct of_device_id *match;

match = of_match_device(nmk_pinctrl_match, &pdev->dev);
if (!match)
return -ENODEV;
version = (unsigned int) match->data;
}

/* Poke in other ASIC variants here */
if (version == PINCTRL_NMK_STN8815)
Expand Down

0 comments on commit ad39e86

Please sign in to comment.