Signed-off-by: Catalin Patulea <c...@vv.carleton.ca>
---
 .../net/ethernet/atheros/ag71xx/ag71xx_main.c      |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c 
b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
index f4d6735..0c2163f 100644
--- 
a/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
+++ 
b/target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c
@@ -1197,7 +1197,7 @@ static int ag71xx_probe(struct platform_device *pdev)
        err = register_netdev(dev);
        if (err) {
                dev_err(&pdev->dev, "unable to register net device\n");
-               goto err_phy_disconnect;
+               goto err_debugfs_exit;
        }
 
        pr_info("%s: Atheros AG71xx at 0x%08lx, irq %d, mode:%s\n",
@@ -1206,6 +1206,8 @@ static int ag71xx_probe(struct platform_device *pdev)
 
        return 0;
 
+err_debugfs_exit:
+       ag71xx_debugfs_exit(ag);
 err_phy_disconnect:
        ag71xx_phy_disconnect(ag);
 err_free_desc:
-- 
1.7.9.5
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to