From patchwork Sun Oct 12 12:49:34 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adrian Bunk X-Patchwork-Id: 4078 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by ozlabs.org (Postfix) with ESMTP id 0A2F5DDDF5 for ; Sun, 12 Oct 2008 23:50:37 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753200AbYJLMub (ORCPT ); Sun, 12 Oct 2008 08:50:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753048AbYJLMub (ORCPT ); Sun, 12 Oct 2008 08:50:31 -0400 Received: from smtp4.pp.htv.fi ([213.243.153.38]:52567 "EHLO smtp4.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752744AbYJLMua (ORCPT ); Sun, 12 Oct 2008 08:50:30 -0400 Received: from cs181140183.pp.htv.fi (cs181140183.pp.htv.fi [82.181.140.183]) by smtp4.pp.htv.fi (Postfix) with ESMTP id C8D2F5BC02C; Sun, 12 Oct 2008 15:50:29 +0300 (EEST) Date: Sun, 12 Oct 2008 15:49:34 +0300 From: Adrian Bunk To: Lennert Buytenhek , "David S. Miller" , jgarzik@pobox.com, Ralf Baechle Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [2.6 patch] net/tc35815.c: fix compilation Message-ID: <20081012124934.GH31153@cs181140183.pp.htv.fi> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Fix an obvious typo introduced by commit 298cf9beb9679522de995e249eccbd82f7c51999 (phylib: move to dynamic allocation of struct mii_bus). <-- snip --> ... CC drivers/net/tc35815.o drivers/net/tc35815.c: In function 'tc_mii_init': drivers/net/tc35815.c:799: error: 'err_out_free_mii_bus' undeclared (first use in this function) drivers/net/tc35815.c:799: error: (Each undeclared identifier is reported only once drivers/net/tc35815.c:799: error: for each function it appears in.) drivers/net/tc35815.c:781: error: label 'err_out_free_mii_bus' used but not defined make[3]: *** [drivers/net/tc35815.o] Error 1 <-- snip --> Signed-off-by: Adrian Bunk --- -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/tc35815.c b/drivers/net/tc35815.c index 4980b12..df20caf 100644 --- a/drivers/net/tc35815.c +++ b/drivers/net/tc35815.c @@ -796,7 +796,7 @@ err_out_unregister_bus: mdiobus_unregister(lp->mii_bus); err_out_free_mdio_irq: kfree(lp->mii_bus->irq); -err_out_free_mii_bus; +err_out_free_mii_bus: mdiobus_free(lp->mii_bus); err_out: return err;