linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/1] usb: musb: dsps: use platform_get_irq_byname_optional() for vbus IRQ
@ 2025-08-25 12:49 Alexander Stein
  0 siblings, 0 replies; only message in thread
From: Alexander Stein @ 2025-08-25 12:49 UTC (permalink / raw)
  To: Bin Liu, Greg Kroah-Hartman
  Cc: Matthias Schiffer, linux-usb, linux-kernel, Alexander Stein

From: Matthias Schiffer <matthias.schiffer@tq-group.com>

The vbus IRQ is optional, so no error message should be printed if it is
not available.

Signed-off-by: Matthias Schiffer <matthias.schiffer@tq-group.com>
Signed-off-by: Alexander Stein <alexander.stein@ew.tq-group.com>
---
 drivers/usb/musb/musb_dsps.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;
 
-- 
2.43.0


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-08-25 12:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-25 12:49 [PATCH 1/1] usb: musb: dsps: use platform_get_irq_byname_optional() for vbus IRQ Alexander Stein

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).