diff options
author | Vladimir Oltean <vladimir.oltean@nxp.com> | 2021-09-22 18:10:29 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-09-23 12:46:22 +0100 |
commit | 33e1501f5a5fd1d682d43c4f5a03bc6c9a742d1e (patch) | |
tree | cd92d4ea4d8bb27a580ae527d019057ca3800573 /net/dsa/dsa2.c | |
parent | a7597f79d3b1d040c347adfd50ec0d50483deba0 (diff) |
net: dsa: sja1105: don't keep a persistent reference to the reset GPIO
The driver only needs the reset GPIO for a very brief period, so instead
of using devres and keeping the descriptor pointer inside priv, just use
that descriptor inside the sja1105_hw_reset function and then let go of
it.
Also use gpiod_get_optional while at it, and error out on real errors
(bad flags etc).
Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dsa/dsa2.c')
0 files changed, 0 insertions, 0 deletions