Skip to content

Commit

Permalink
Merge branch 'lan966x-make-reset-optional'
Browse files Browse the repository at this point in the history
Michael Walle says:

====================
net: lan966x: make reset optional

This is the remaining part of the reset rework on the LAN966x targetting
the netdev tree.

The former series can be found at:
https://lore.kernel.org/lkml/20220826115607.1148489-1-michael@walle.cc/
====================

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Sep 2, 2022
2 parents aa51b80 + f4c1f51 commit a01105f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,6 @@ required:
- reg-names
- interrupts
- interrupt-names
- resets
- reset-names
- ethernet-ports

additionalProperties: false
Expand Down
3 changes: 2 additions & 1 deletion drivers/net/ethernet/microchip/lan966x/lan966x_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -971,7 +971,8 @@ static int lan966x_reset_switch(struct lan966x *lan966x)
int val = 0;
int ret;

switch_reset = devm_reset_control_get_shared(lan966x->dev, "switch");
switch_reset = devm_reset_control_get_optional_shared(lan966x->dev,
"switch");
if (IS_ERR(switch_reset))
return dev_err_probe(lan966x->dev, PTR_ERR(switch_reset),
"Could not obtain switch reset");
Expand Down

0 comments on commit a01105f

Please sign in to comment.