commit | f16891326c1c6e6b0f17f60cb6921a145a13e017 | [log] [tgz] |
---|---|---|
author | Phil Reid <preid@electromag.com.au> | Wed Jan 10 15:39:33 2018 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Jan 15 13:18:02 2018 -0500 |
tree | b96ea4095123b0eb4dd2cee6dcf1dade21473ef9 | |
parent | a57d476d9707a470bbdcbd1ab00df73b55650bf7 [diff] |
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: Phil Reid <preid@electromag.com.au> Signed-off-by: David S. Miller <davem@davemloft.net>