mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
ar71xx: ag71xx: fix ag71xx_probe error path
Signed-off-by: Catalin Patulea <cat@vv.carleton.ca> Signed-off-by: Gabor Juhos <juhosg@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38716 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user