From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [2,6 patch] sunhme.c:quattro_pci_find() must be __devinit Date: Tue, 10 Jul 2007 14:44:49 +0200 Message-ID: <20070710124449.GZ3492@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: "David S. Miller" , jgarzik@pobox.com Return-path: Received: from mailout.stusta.mhn.de ([141.84.69.5]:56654 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756085AbXGJMoQ (ORCPT ); Tue, 10 Jul 2007 08:44:16 -0400 Content-Disposition: inline Sender: netdev-owner@vger.kernel.org List-Id: netdev.vger.kernel.org This patch fixes the following section mismatch: <-- snip --> ... MODPOST vmlinux WARNING: drivers/built-in.o(.text+0x272f8b): Section mismatch: reference to .init.text:quattro_pci_find (between 'happy_meal_pci_probe' and 'happy_meal_pci_remove') ... <-- snip --> Signed-off-by: Adrian Bunk --- --- linux-2.6.22-rc6-mm1/drivers/net/sunhme.c.old 2007-07-10 04:41:59.000000000 +0200 +++ linux-2.6.22-rc6-mm1/drivers/net/sunhme.c 2007-07-10 04:42:56.000000000 +0200 @@ -2625,7 +2625,7 @@ #endif /* CONFIG_SBUS */ #ifdef CONFIG_PCI -static struct quattro * __init quattro_pci_find(struct pci_dev *pdev) +static struct quattro * __devinit quattro_pci_find(struct pci_dev *pdev) { struct pci_dev *bdev = pdev->bus->self; struct quattro *qp;