diff options
author | Lothar Wassmann <LW@KARO-electronics.de> | 2017-01-29 16:54:05 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2017-01-30 03:13:30 -0500 |
commit | f2dafc095018fcc6a71793cfefdd490c9f1c63be (patch) | |
tree | e6ee41f9da5c5e97ed60b9cf1f6131b68f9ce005 | |
parent | 8c0216f377406c7613b67bd18755889026284192 (diff) |
pwm: Print error messages with pr_err() instead of pr_debug()
Make the messages that are printed in case of fatal errors actually
visible to the user without having to recompile the driver with
debugging enabled.
Signed-off-by: Lothar Waßmann <LW@KARO-electronics.de>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
-rw-r--r-- | drivers/pwm/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index 78e114a11c4f..012e27c7f27e 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c | |||
@@ -663,13 +663,13 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) | |||
663 | err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, | 663 | err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, |
664 | &args); | 664 | &args); |
665 | if (err) { | 665 | if (err) { |
666 | pr_debug("%s(): can't parse \"pwms\" property\n", __func__); | 666 | pr_err("%s(): can't parse \"pwms\" property\n", __func__); |
667 | return ERR_PTR(err); | 667 | return ERR_PTR(err); |
668 | } | 668 | } |
669 | 669 | ||
670 | pc = of_node_to_pwmchip(args.np); | 670 | pc = of_node_to_pwmchip(args.np); |
671 | if (IS_ERR(pc)) { | 671 | if (IS_ERR(pc)) { |
672 | pr_debug("%s(): PWM chip not found\n", __func__); | 672 | pr_err("%s(): PWM chip not found\n", __func__); |
673 | pwm = ERR_CAST(pc); | 673 | pwm = ERR_CAST(pc); |
674 | goto put; | 674 | goto put; |
675 | } | 675 | } |