Commit ab967169 authored by Matthias Schiffer's avatar Matthias Schiffer Committed by Greg Kroah-Hartman
Browse files

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: default avatarMatthias Schiffer <matthias.schiffer@tq-group.com>
Signed-off-by: default avatarAlexander Stein <alexander.stein@ew.tq-group.com>
Link: https://lore.kernel.org/r/20250825124901.2190539-1-alexander.stein@ew.tq-group.com


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0d739504
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;