From: Matthias Schiffer Date: Mon, 25 Aug 2025 12:49:00 +0000 (+0200) Subject: usb: musb: dsps: use platform_get_irq_byname_optional() for vbus IRQ X-Git-Tag: v6.18-rc1~76^2~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab96716991f3b7634566bc000d69a66b8b2ecc15;p=thirdparty%2Fkernel%2Fstable.git usb: musb: dsps: use platform_get_irq_byname_optional() for vbus IRQ The vbus IRQ is optional, so no error message should be printed if it is not available. Signed-off-by: Matthias Schiffer Signed-off-by: Alexander Stein Link: https://lore.kernel.org/r/20250825124901.2190539-1-alexander.stein@ew.tq-group.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 12f587ab85117..a08ce96c08d3a 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -839,7 +839,7 @@ static int dsps_setup_optional_vbus_irq(struct platform_device *pdev, { int error; - glue->vbus_irq = platform_get_irq_byname(pdev, "vbus"); + glue->vbus_irq = platform_get_irq_byname_optional(pdev, "vbus"); if (glue->vbus_irq == -EPROBE_DEFER) return -EPROBE_DEFER;