aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-gadget.c
diff options
context:
space:
mode:
authorYang Yingliang <yangyingliang@huawei.com>2022-09-27 15:26:15 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-09-27 10:36:07 +0200
commit82d788750e35ab0bf7f5cc1005b694bb2ca3cf20 (patch)
tree9049e6c3b85daee591bdbf2892360332dfcc01cb /drivers/usb/cdns3/cdns3-gadget.c
parenta806f67f15feca7449ffc792daa59af36a9c0135 (diff)
usb: musb: jz4740: Switch to use dev_err_probe() helper
In the probe path, dev_err() can be replaced with dev_err_probe() which will check if error code is -EPROBE_DEFER and prints the error name. It also sets the defer probe reason which can be checked later through debugfs. It's more simple in error path. Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> Link: https://lore.kernel.org/r/20220927072616.913672-5-yangyingliang@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-gadget.c')
0 files changed, 0 insertions, 0 deletions