Skip to content

Commit 2c61e82

Browse files
committed
Revert "mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled"
This reverts commit 075e238. Going to go with Geert's fix instead, which also has a correct Fixes tag. Signed-off-by: David S. Miller <[email protected]>
1 parent 74e78d6 commit 2c61e82

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/net/phy/mdio_bus.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,7 @@ static int mdiobus_register_reset(struct mdio_device *mdiodev)
6565
reset = devm_reset_control_get_exclusive(&mdiodev->dev,
6666
"phy");
6767
if (IS_ERR(reset)) {
68-
if (PTR_ERR(reset) == -ENOENT || PTR_ERR(reset) == -ENOSYS ||
69-
PTR_ERR(reset) == -ENOTSUPP)
68+
if (PTR_ERR(reset) == -ENOENT || PTR_ERR(reset) == -ENOSYS)
7069
reset = NULL;
7170
else
7271
return PTR_ERR(reset);

0 commit comments

Comments
 (0)