From: Jean Delvare Date: Tue, 20 Feb 2007 21:58:18 +0000 (-0800) Subject: [PATCH] parport_pc: fix parport_pc_probe_port section warning X-Git-Tag: v2.6.21-rc1~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=0bb92e6cd313cf209ea0c164952d1f65c5b3ea46;p=linux-2.6-omap-h63xx.git [PATCH] parport_pc: fix parport_pc_probe_port section warning WARNING: drivers/parport/parport_pc.o - Section mismatch: reference to .init.text: from .text between 'parport_pc_probe_port' (at offset 0x14f7) and 'parport_pc_unregister_port' parport_dma_probe() cannot be declared __devinit as it is called from parport_pc_probe_port() which isn't. Signed-off-by: Jean Delvare Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/parport/parport_pc.c b/drivers/parport/parport_pc.c index b61c17b3e29..3de2623afa1 100644 --- a/drivers/parport/parport_pc.c +++ b/drivers/parport/parport_pc.c @@ -1546,7 +1546,7 @@ static void __devinit detect_and_report_smsc (void) } #endif /* CONFIG_PARPORT_PC_SUPERIO */ -static int __devinit get_superio_dma (struct parport *p) +static int get_superio_dma (struct parport *p) { int i=0; while( (superios[i].io != p->base) && (iprivate_data; if (priv->ecr)