Skip to content
Commit f1689132 authored by Phil Reid's avatar Phil Reid Committed by David S. Miller
Browse files

net: dsa: lan9303: check error value from devm_gpiod_get_optional()



devm_gpiod_get_optional() can return an error in addition to a NULL ptr.
Check for error and propagate that to the probe function. Check return
value in probe. This will now handle EPROBE_DEFER for the reset gpio.

Signed-off-by: default avatarPhil Reid <preid@electromag.com.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent a57d476d
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