diff options
author | Gabor Juhos <juhosg@openwrt.org> | 2013-11-11 07:47:00 +0000 |
---|---|---|
committer | Gabor Juhos <juhosg@openwrt.org> | 2013-11-11 07:47:00 +0000 |
commit | 02885cd80a65456107a0dc5a27e24b8e7a0852aa (patch) | |
tree | 527473ae746201b279a429826063cf3d6b5f6fb4 /target/linux/ar71xx | |
parent | a1a849b8f3b6380d7ff07db9fb02b5ec260d061e (diff) | |
download | upstream-02885cd80a65456107a0dc5a27e24b8e7a0852aa.tar.gz upstream-02885cd80a65456107a0dc5a27e24b8e7a0852aa.tar.bz2 upstream-02885cd80a65456107a0dc5a27e24b8e7a0852aa.zip |
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
Diffstat (limited to 'target/linux/ar71xx')
-rw-r--r-- | target/linux/ar71xx/files/drivers/net/ethernet/atheros/ag71xx/ag71xx_main.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 f4d6735349..0c2163f5be 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: |