diff options
author | 2021-09-22 18:10:29 +0300 | |
---|---|---|
committer | 2021-09-23 12:46:22 +0100 | |
commit | 33e1501f5a5fd1d682d43c4f5a03bc6c9a742d1e (patch) | |
tree | cd92d4ea4d8bb27a580ae527d019057ca3800573 /include/net/tcp.h | |
parent | Merge branch 'ja1105-deps' (diff) | |
download | linux-rng-33e1501f5a5fd1d682d43c4f5a03bc6c9a742d1e.tar.xz linux-rng-33e1501f5a5fd1d682d43c4f5a03bc6c9a742d1e.zip |
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 'include/net/tcp.h')
0 files changed, 0 insertions, 0 deletions