From patchwork Sun Dec 21 01:11:10 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Halasa X-Patchwork-Id: 15087 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 E43C5DDD04 for ; Sun, 21 Dec 2008 12:11:38 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752302AbYLUBLY (ORCPT ); Sat, 20 Dec 2008 20:11:24 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752068AbYLUBLY (ORCPT ); Sat, 20 Dec 2008 20:11:24 -0500 Received: from khc.piap.pl ([195.187.100.11]:37433 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751629AbYLUBLX (ORCPT ); Sat, 20 Dec 2008 20:11:23 -0500 Received: by khc.piap.pl (Postfix, from userid 500) id 230E570013; Sun, 21 Dec 2008 02:11:10 +0100 (CET) To: Subject: [RFC] IXP4xx: Silence section mismatch warning in Ethernet driver. From: Krzysztof Halasa Date: Sun, 21 Dec 2008 02:11:10 +0100 Message-ID: MIME-Version: 1.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Few patches I'm posting for review only. Not for operational use. IXP4xx: Silence section mismatch warning in Ethernet driver. --- a/drivers/net/arm/ixp4xx_eth.c +++ b/drivers/net/arm/ixp4xx_eth.c @@ -1232,7 +1232,7 @@ static int __devexit eth_remove_one(struct platform_device *pdev) return 0; } -static struct platform_driver drv = { +static struct platform_driver ixp4xx_eth_driver = { .driver.name = DRV_NAME, .probe = eth_init_one, .remove = eth_remove_one, @@ -1248,12 +1248,12 @@ static int __init eth_init_module(void) mdio_regs = (struct eth_regs __iomem *)IXP4XX_EthB_BASE_VIRT; __raw_writel(DEFAULT_CORE_CNTRL, &mdio_regs->core_control); - return platform_driver_register(&drv); + return platform_driver_register(&ixp4xx_eth_driver); } static void __exit eth_cleanup_module(void) { - platform_driver_unregister(&drv); + platform_driver_unregister(&ixp4xx_eth_driver); } MODULE_AUTHOR("Krzysztof Halasa");