projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
10e93e0
)
usb: mtu3: use dev_err_probe to print error log about extcon
author
Chunfeng Yun
<chunfeng.yun@mediatek.com>
Fri, 28 May 2021 06:10:59 +0000
(14:10 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 3 Jun 2021 11:53:04 +0000
(13:53 +0200)
Print an error log when the error number is not -EPROBE_DEFER
Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Link:
https://lore.kernel.org/r/1622182260-23767-4-git-send-email-chunfeng.yun@mediatek.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/mtu3/mtu3_plat.c
patch
|
blob
|
history
diff --git
a/drivers/usb/mtu3/mtu3_plat.c
b/drivers/usb/mtu3/mtu3_plat.c
index 7786a95a874e82f72f45e27e7b21eeb58001e79c..eaeda391693a5aa9304d408f5342074ef21c57f4 100644
(file)
--- a/
drivers/usb/mtu3/mtu3_plat.c
+++ b/
drivers/usb/mtu3/mtu3_plat.c
@@
-302,8
+302,8
@@
static int get_ssusb_rscs(struct platform_device *pdev, struct ssusb_mtk *ssusb)
if (!otg_sx->role_sw_used && of_property_read_bool(node, "extcon")) {
otg_sx->edev = extcon_get_edev_by_phandle(ssusb->dev, 0);
if (IS_ERR(otg_sx->edev)) {
- dev_err(ssusb->dev, "couldn't get extcon device\n");
-
return PTR_ERR(otg_sx->edev
);
+ return dev_err_probe(dev, PTR_ERR(otg_sx->edev),
+
"couldn't get extcon device\n"
);
}
}