mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 07:12:09 +00:00
usb: mtu3: fix error code for getting extcon device
When failing to get extcon device, extcon_get_edev_by_phandle() may return different error codes, but not only -EPROBE_DEFER, so can't always return -EPROBE_DEFER, and fix it. Signed-off-by: Chunfeng Yun <chunfeng.yun@mediatek.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
8a99b6ad4d
commit
3849c29013
1 changed files with 1 additions and 1 deletions
|
@ -308,7 +308,7 @@ static int get_ssusb_rscs(struct platform_device *pdev, struct ssusb_mtk *ssusb)
|
|||
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 -EPROBE_DEFER;
|
||||
return PTR_ERR(otg_sx->edev);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue