aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/extcon
diff options
context:
space:
mode:
authorStephen Boyd <stephen.boyd@linaro.org>2016-07-05 14:57:05 -0400
committerChanwoo Choi <cw00.choi@samsung.com>2016-08-07 21:58:35 -0400
commite8752b7a7294a7c19545123eea079d873f8cc243 (patch)
tree5ed05795a4db109fa1b4b35f81fe50b89669c931 /drivers/extcon
parentba4b27151ade5eab3d32a47bf323bfa8c5cd0726 (diff)
extcon: Move extcon_get_edev_by_phandle() errors to dbg level
Sometimes drivers may call this API and expect it to fail because the extcon they're looking for is optional. Let's move these prints to debug level so it doesn't look like there's a problem when there isn't one. Signed-off-by: Stephen Boyd <stephen.boyd@linaro.org> Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Diffstat (limited to 'drivers/extcon')
-rw-r--r--drivers/extcon/extcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/extcon/extcon.c b/drivers/extcon/extcon.c
index 8682efc0f57b..319659c6af28 100644
--- a/drivers/extcon/extcon.c
+++ b/drivers/extcon/extcon.c
@@ -846,13 +846,13 @@ struct extcon_dev *extcon_get_edev_by_phandle(struct device *dev, int index)
846 return ERR_PTR(-EINVAL); 846 return ERR_PTR(-EINVAL);
847 847
848 if (!dev->of_node) { 848 if (!dev->of_node) {
849 dev_err(dev, "device does not have a device node entry\n"); 849 dev_dbg(dev, "device does not have a device node entry\n");
850 return ERR_PTR(-EINVAL); 850 return ERR_PTR(-EINVAL);
851 } 851 }
852 852
853 node = of_parse_phandle(dev->of_node, "extcon", index); 853 node = of_parse_phandle(dev->of_node, "extcon", index);
854 if (!node) { 854 if (!node) {
855 dev_err(dev, "failed to get phandle in %s node\n", 855 dev_dbg(dev, "failed to get phandle in %s node\n",
856 dev->of_node->full_name); 856 dev->of_node->full_name);
857 return ERR_PTR(-ENODEV); 857 return ERR_PTR(-ENODEV);
858 } 858 }