diff options
author | Dong Aisheng <dong.aisheng@linaro.org> | 2012-04-17 15:00:45 +0800 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2012-04-18 13:53:13 +0200 |
commit | d0bd8df56ebffe4a5ca42e27aca2a1243c70ed53 (patch) | |
tree | 1dbcd9a82b3c88992ce2745b04b06094bf23f8d4 /drivers/pinctrl/pinmux.c | |
parent | 6d4ca1fb467932773da7b808c52f3d7ef4461ba0 (diff) | |
download | linux-d0bd8df56ebffe4a5ca42e27aca2a1243c70ed53.tar.gz linux-d0bd8df56ebffe4a5ca42e27aca2a1243c70ed53.tar.bz2 linux-d0bd8df56ebffe4a5ca42e27aca2a1243c70ed53.zip |
pinctrl: show pin name when request pins
Pin name is more useful to users.
Acked-by: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Dong Aisheng <dong.aisheng@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl/pinmux.c')
-rw-r--r-- | drivers/pinctrl/pinmux.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index c494c37bf167..fa0357bd88ff 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c @@ -88,8 +88,6 @@ static int pin_request(struct pinctrl_dev *pctldev, const struct pinmux_ops *ops = pctldev->desc->pmxops; int status = -EINVAL; - dev_dbg(pctldev->dev, "request pin %d for %s\n", pin, owner); - desc = pin_desc_get(pctldev, pin); if (desc == NULL) { dev_err(pctldev->dev, @@ -97,6 +95,9 @@ static int pin_request(struct pinctrl_dev *pctldev, goto out; } + dev_dbg(pctldev->dev, "request pin %d (%s) for %s\n", + pin, desc->name, owner); + if (gpio_range) { /* There's no need to support multiple GPIO requests */ if (desc->gpio_owner) { |