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 <matthias.schiffer@tq-group.com>
Signed-off-by: Alexander 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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Matthias Schiffer 2025-08-25 14:49:00 +02:00 committed by Greg Kroah-Hartman
parent 0d7395046b
commit ab96716991
1 changed files with 1 additions and 1 deletions

View File

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