From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Bunk Subject: [2.6 patch] sis900_mii_probe() must be __devinit Date: Tue, 10 Jul 2007 14:44:35 +0200 Message-ID: <20070710124435.GR3492@stusta.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org To: venza@brownhat.org, jgarzik@pobox.com Return-path: Received: from mailout.stusta.mhn.de ([141.84.69.5]:56636 "EHLO mailhub.stusta.mhn.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751200AbXGJMoC (ORCPT ); Tue, 10 Jul 2007 08:44:02 -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+0x298170): Section mismatch: reference to .init.text:sis900_mii_probe (between 'sis900_probe' and 'sis900_default_phy') ... <-- snip --> Signed-off-by: Adrian Bunk --- --- linux-2.6.22-rc6-mm1/drivers/net/sis900.c.old 2007-07-10 04:02:23.000000000 +0200 +++ linux-2.6.22-rc6-mm1/drivers/net/sis900.c 2007-07-10 04:03:31.000000000 +0200 @@ -573,7 +573,7 @@ * return error if it failed to found. */ -static int __init sis900_mii_probe(struct net_device * net_dev) +static int __devinit sis900_mii_probe(struct net_device * net_dev) { struct sis900_private * sis_priv = net_dev->priv; const char *dev_name = pci_name(sis_priv->pci_dev);