mirror of https://github.com/torvalds/linux.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 <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:
parent
0d7395046b
commit
ab96716991
|
|
@ -839,7 +839,7 @@ static int dsps_setup_optional_vbus_irq(struct platform_device *pdev,
|
||||||
{
|
{
|
||||||
int error;
|
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)
|
if (glue->vbus_irq == -EPROBE_DEFER)
|
||||||
return -EPROBE_DEFER;
|
return -EPROBE_DEFER;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue