diff options
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | 2016-10-01 00:56:37 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-10-03 09:03:27 +0300 |
commit | f814bfd765218908b23e21ca7f0b6f403fb88972 (patch) | |
tree | b2a681cebc8b41c3bb2b55a575953c74bb5b1aa3 /drivers/net/ethernet/marvell | |
parent | 7667d445fa9e84be028d2f658c537f4f5584d250 (diff) | |
download | linux-f814bfd765218908b23e21ca7f0b6f403fb88972.tar.xz |
net: mvmdio: do not clk_disable_unprepare() NULL clock
There is no need to clk_disable_unprepare(dev->clk)
before it was initialized.
Found by Linux Driver Verification project (linuxtesting.org).
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell')
-rw-r--r-- | drivers/net/ethernet/marvell/mvmdio.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/ethernet/marvell/mvmdio.c b/drivers/net/ethernet/marvell/mvmdio.c index 8982c882af1b..a0d1b084ecec 100644 --- a/drivers/net/ethernet/marvell/mvmdio.c +++ b/drivers/net/ethernet/marvell/mvmdio.c @@ -211,8 +211,7 @@ static int orion_mdio_probe(struct platform_device *pdev) dev->regs = devm_ioremap(&pdev->dev, r->start, resource_size(r)); if (!dev->regs) { dev_err(&pdev->dev, "Unable to remap SMI register\n"); - ret = -ENODEV; - goto out_mdio; + return -ENODEV; } init_waitqueue_head(&dev->smi_busy_wait); |