]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pwm: print error messages with pr_err() instead of pr_debug()
authorLothar Waßmann <LW@KARO-electronics.de>
Thu, 12 Jun 2014 11:34:42 +0000 (13:34 +0200)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 4 Jul 2014 10:36:04 +0000 (12:36 +0200)
drivers/pwm/core.c

index 4b66bf09ee550fc391b8b22155dc4610ae649022..7af00437bb19e727292d1f129eec45e3042e2a40 100644 (file)
@@ -525,13 +525,13 @@ 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\n", __func__);
                pwm = ERR_CAST(pc);
                goto put;
        }