pinctrl: uniphier: replace printf() with dev_err()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Sat, 5 May 2018 10:53:52 +0000 (19:53 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 8 May 2018 01:25:14 +0000 (10:25 +0900)
dev_err() is more suitable for printing error messages.

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
drivers/pinctrl/uniphier/pinctrl-uniphier-core.c

index 7b427d06ece5dc2eae3c3eb7939e7cdb5b501e37..601a42d9091a6da3ac54df31a74ea76593a8301e 100644 (file)
@@ -173,7 +173,7 @@ static int uniphier_pinconf_set_one(struct udevice *dev, unsigned int pin,
                ret = uniphier_pinconf_input_enable(dev, pin, arg);
                break;
        default:
-               printf("unsupported configuration parameter %u\n", param);
+               dev_err(dev, "unsupported configuration parameter %u\n", param);
                return -EINVAL;
        }