From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1762468AbXHWONv (ORCPT ); Thu, 23 Aug 2007 10:13:51 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758986AbXHWONn (ORCPT ); Thu, 23 Aug 2007 10:13:43 -0400 Received: from ftp.linux-mips.org ([194.74.144.162]:41347 "EHLO ftp.linux-mips.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758830AbXHWONm (ORCPT ); Thu, 23 Aug 2007 10:13:42 -0400 Date: Thu, 23 Aug 2007 15:13:39 +0100 From: Ralf Baechle To: linux-kernel@vger.kernel.org, Andrew Morton , linux-serial@vger.kernel.org, Russell King Subject: [SERIAL] Fix modpost warning in serial driver. Message-ID: <20070823141339.GA2419@linux-mips.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.14 (2007-02-12) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org This is triggered if PCI && !HOTPLUG. MODPOST vmlinux.o WARNING: vmlinux.o(.data+0xc910): Section mismatch: reference to .init.text:pci_ite887x_init (between 'pci_serial_quirks' and 'serial_pci_tbl') Signed-off-by: Ralf Baechle diff --git a/drivers/serial/8250_pci.c b/drivers/serial/8250_pci.c index bd66339..1ea1ed8 100644 --- a/drivers/serial/8250_pci.c +++ b/drivers/serial/8250_pci.c @@ -610,7 +610,7 @@ static int pci_netmos_init(struct pci_dev *dev) /* enable IO_Space bit */ #define ITE_887x_POSIO_ENABLE (1 << 31) -static int __devinit pci_ite887x_init(struct pci_dev *dev) +static int pci_ite887x_init(struct pci_dev *dev) { /* inta_addr are the configuration addresses of the ITE */ static const short inta_addr[] = { 0x2a0, 0x2c0, 0x220, 0x240, 0x1e0,