From: Lothar Waßmann Date: Wed, 3 Jun 2015 05:18:30 +0000 (+0200) Subject: pwm: print error messages with pr_err() instead of pr_debug() X-Git-Tag: KARO-TXA5-2015-06-26~14 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;ds=sidebyside;h=09f3c13ceaf8132525d995abc2c0ffda20b5bd43;p=karo-tx-linux.git pwm: print error messages with pr_err() instead of pr_debug() --- diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c index ba34c7d89042..c3eb2dbc00f0 100644 --- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -525,19 +525,19 @@ struct pwm_device *of_pwm_get(struct device_node *np, const char *con_id) err = of_parse_phandle_with_args(np, "pwms", "#pwm-cells", index, &args); if (err) { - pr_debug("%s(): can't parse \"pwms\" property\n", __func__); + pr_err("%s(): can't parse \"pwms\" property\n", __func__); return ERR_PTR(err); } pc = of_node_to_pwmchip(args.np); if (IS_ERR(pc)) { - pr_debug("%s(): PWM chip not found\n", __func__); + pr_err("%s(): PWM chip not found: %ld\n", __func__, PTR_ERR(pc)); pwm = ERR_CAST(pc); goto put; } if (args.args_count != pc->of_pwm_n_cells) { - pr_debug("%s: wrong #pwm-cells for %s\n", np->full_name, + pr_err("%s: wrong #pwm-cells for %s\n", np->full_name, args.np->full_name); pwm = ERR_PTR(-EINVAL); goto put;