]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: bcm_sf2: simplify optional reset handling
authorPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 5 Mar 2021 09:14:48 +0000 (10:14 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Mar 2021 19:51:36 +0000 (11:51 -0800)
commit38a369841fc9ea9c822f50a90718a4b102712a63
treed749390432ac0e89ccaeab481229b9a5a6195bfe
parentef69eda2f78c87429f2ef4c2eb73ef2cd61c1eca
net: dsa: bcm_sf2: simplify optional reset handling

As of commit 57b2f37eee5d ("reset: make optional functions really
optional"), the reset framework API calls use NULL pointers to describe
optional, non-present reset controls.

This allows to unconditionally return errors from
devm_reset_control_get_optional_exclusive.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/bcm_sf2.c