mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-24 05:04:00 +08:00
Revert "mdio_bus: fix mdio_register_device when RESET_CONTROLLER is disabled"
This reverts commit 075e238d12
.
Going to go with Geert's fix instead, which also has a
correct Fixes tag.
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
74e78d6bae
commit
2c61e821da
@ -65,8 +65,7 @@ static int mdiobus_register_reset(struct mdio_device *mdiodev)
|
||||
reset = devm_reset_control_get_exclusive(&mdiodev->dev,
|
||||
"phy");
|
||||
if (IS_ERR(reset)) {
|
||||
if (PTR_ERR(reset) == -ENOENT || PTR_ERR(reset) == -ENOSYS ||
|
||||
PTR_ERR(reset) == -ENOTSUPP)
|
||||
if (PTR_ERR(reset) == -ENOENT || PTR_ERR(reset) == -ENOSYS)
|
||||
reset = NULL;
|
||||
else
|
||||
return PTR_ERR(reset);
|
||||
|
Loading…
Reference in New Issue
Block a user