From: Randy Dunlap Date: Mon, 28 Feb 2005 02:33:30 +0000 (-0800) Subject: [PATCH] hp100: fix section references X-Git-Tag: v2.6.11~15 X-Git-Url: http://git.neil.brown.name/?a=commitdiff_plain;h=c6f68779bb225de52c1ceed39de0bc5aa1e33123;p=history.git [PATCH] hp100: fix section references hp100: references __init code that should be marked as __devinit; Error: ./drivers/net/hp100.o .text refers to 0000000000000f7f R_X86_64_PC32 .init.text+0x00000000000000b8 Signed-off-by: Randy Dunlap Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/hp100.c b/drivers/net/hp100.c index 84fcb7189593..acb170152bbd 100644 --- a/drivers/net/hp100.c +++ b/drivers/net/hp100.c @@ -306,7 +306,7 @@ static void wait(void) * Read board id and convert to string. * Effectively same code as decode_eisa_sig */ -static __init const char *hp100_read_id(int ioaddr) +static __devinit const char *hp100_read_id(int ioaddr) { int i; static char str[HP100_SIG_LEN]; @@ -429,8 +429,8 @@ struct net_device * __init hp100_probe(int unit) } #endif -static int __init hp100_probe1(struct net_device *dev, int ioaddr, - u_char bus, struct pci_dev *pci_dev) +static int __devinit hp100_probe1(struct net_device *dev, int ioaddr, + u_char bus, struct pci_dev *pci_dev) { int i; int err = -ENODEV;