diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2016-07-19 13:33:10 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-20 23:46:00 +0200 |
commit | 9a7bae8a12140c164082100a917ed5f856afccfc (patch) | |
tree | 8282a3a7f6ef8a985d85b7cb90705d0184401b7b /drivers/net/ethernet/aurora | |
parent | wan/fsl_ucc_hdlc: use module_platform_driver to simplify the code (diff) | |
download | linux-9a7bae8a12140c164082100a917ed5f856afccfc.tar.xz linux-9a7bae8a12140c164082100a917ed5f856afccfc.zip |
net: ethernet: nb8800: fix error handling of nb8800_probe()
In ops->reset() error handling case, clk_disable_unprepare() is missed
before return from this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Acked-by: Mans Rullgard <mans@mansr.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/aurora')
-rw-r--r-- | drivers/net/ethernet/aurora/nb8800.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/aurora/nb8800.c b/drivers/net/ethernet/aurora/nb8800.c index dc2c35dce216..0d3aa1d170ec 100644 --- a/drivers/net/ethernet/aurora/nb8800.c +++ b/drivers/net/ethernet/aurora/nb8800.c @@ -1418,7 +1418,7 @@ static int nb8800_probe(struct platform_device *pdev) if (ops && ops->reset) { ret = ops->reset(dev); if (ret) - goto err_free_dev; + goto err_disable_clk; } bus = devm_mdiobus_alloc(&pdev->dev); |