Skip to content
Commit ca1c7362 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

phy: stm32: fix an error code in probe



If "index > usbphyc->nphys" is true then this returns success but it
should return -EINVAL.

Fixes: 94c358da ("phy: stm32: add support for STM32 USB PHY Controller (USBPHYC)")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarAmelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://lore.kernel.org/r/Y0kq8j6S+5nDdMpr@kili


Signed-off-by: default avatarVinod Koul <vkoul@kernel.org>
parent 76845ba5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment