usb: gadget: tegra-xudc: Use dev_err_probe()
authorJon Hunter <jonathanh@nvidia.com>
Wed, 19 May 2021 16:35:53 +0000 (17:35 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 May 2021 18:05:56 +0000 (20:05 +0200)
commit77b57218ac2f37da4e8b72e78f002944b9f85091
treef27b99325d3b800ad2a72e611eccdd8663995cda
parent80a3c7f70e9990ed20634ac1a1c55cfe351be0ea
usb: gadget: tegra-xudc: Use dev_err_probe()

Rather than testing if the error code is -EPROBE_DEFER before printing
an error message, use dev_err_probe() instead to simplify the code.

Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Link: https://lore.kernel.org/r/20210519163553.212682-2-jonathanh@nvidia.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/tegra-xudc.c