From: Ben Gamari <bgamari.foss@gmail.com>
To: Bryan Wu <cooloney@gmail.com>, Richard Purdie <rpurdie@rpsys.net>
Cc: linux-leds@vger.kernel.org, Ben Gamari <bgamari.foss@gmail.com>
Subject: [PATCH] leds/leds-pwm: Display error code on request_pwm failure
Date: Mon, 16 Dec 2013 19:08:52 -0500 [thread overview]
Message-ID: <1387238932-18982-1-git-send-email-bgamari.foss@gmail.com> (raw)
This can be useful in debugging devicetrees.
Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>
---
drivers/leds/leds-pwm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/leds/leds-pwm.c b/drivers/leds/leds-pwm.c
index b31d8e9..707a82a 100644
--- a/drivers/leds/leds-pwm.c
+++ b/drivers/leds/leds-pwm.c
@@ -165,8 +165,8 @@ static int led_pwm_probe(struct platform_device *pdev)
if (IS_ERR(led_dat->pwm)) {
ret = PTR_ERR(led_dat->pwm);
dev_err(&pdev->dev,
- "unable to request PWM for %s\n",
- cur_led->name);
+ "unable to request PWM for %s: error=%d\n",
+ cur_led->name, ret);
goto err;
}
--
1.8.3.2
next reply other threads:[~2013-12-17 0:08 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-17 0:08 Ben Gamari [this message]
2013-12-17 1:26 ` [PATCH] leds/leds-pwm: Display error code on request_pwm failure Bryan Wu
2013-12-17 1:28 ` Bryan Wu
2013-12-17 4:05 ` Ben Gamari
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1387238932-18982-1-git-send-email-bgamari.foss@gmail.com \
--to=bgamari.foss@gmail.com \
--cc=cooloney@gmail.com \
--cc=linux-leds@vger.kernel.org \
--cc=rpurdie@rpsys.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).