Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 294074
b: refs/heads/master
c: f026fe3
h: refs/heads/master
v: v3
  • Loading branch information
Stephen Warren authored and Linus Walleij committed Feb 22, 2012
1 parent be728c4 commit 3e306bb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 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: 9891d98c7ab5712807d87ab40f2a9acd9b317114
refs/heads/master: f026fe3d102e9d7f0d040109353ef5a97b5ef92c
18 changes: 10 additions & 8 deletions trunk/drivers/pinctrl/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -567,14 +567,16 @@ static struct pinctrl *pinctrl_get_locked(struct device *dev, const char *name)
}
}

/* We should have atleast one map, right */
if (!num_maps) {
pr_err("could not find any mux maps for device %s, ID %s\n",
devname ? devname : "(anonymous)",
name ? name : "(undefined)");
kfree(p);
return ERR_PTR(-EINVAL);
}
/*
* This may be perfectly legitimate. An IP block may get re-used
* across SoCs. Not all of those SoCs may need pinmux settings for the
* IP block, e.g. if one SoC dedicates pins to that function but
* another doesn't. The driver won't know this, and will always
* attempt to set up the pinmux. The mapping table defines whether any
* HW programming is actually needed.
*/
if (!num_maps)
dev_info(dev, "zero maps found for mapping %s\n", name);

pr_debug("found %u mux maps for device %s, UD %s\n",
num_maps,
Expand Down

0 comments on commit 3e306bb

Please sign in to comment.