diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2023-01-20 18:44:36 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2023-01-24 20:12:58 +0300 |
commit | 6df3d3aadb6474b9cda105576d042d5d31adec0c (patch) | |
tree | a50fc8c8abde012fbf294a8d47b42370cfaa8cc3 /drivers/usb/fotg210/fotg210-udc.c | |
parent | 6a426eb418791975c39680b7abd5f26dc2c4f66e (diff) | |
download | linux-6df3d3aadb6474b9cda105576d042d5d31adec0c.tar.xz |
usb: fotg210: Switch to use dev_err_probe()
Switch to use dev_err_probe() to simplify the error paths and
unify message template.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230120154437.22025-4-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/fotg210/fotg210-udc.c')
-rw-r--r-- | drivers/usb/fotg210/fotg210-udc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/fotg210/fotg210-udc.c b/drivers/usb/fotg210/fotg210-udc.c index 21f31123cd61..9034eaf773ad 100644 --- a/drivers/usb/fotg210/fotg210-udc.c +++ b/drivers/usb/fotg210/fotg210-udc.c @@ -1271,7 +1271,7 @@ int fotg210_udc_probe(struct platform_device *pdev, struct fotg210 *fotg) ret = request_irq(irq, fotg210_irq, IRQF_SHARED, udc_name, fotg210); if (ret < 0) { - dev_err(dev, "request_irq error (%d)\n", ret); + dev_err_probe(dev, ret, "request_irq error\n"); goto err_req; } |