From: Adrian Bunk This patch fixes the following compile error with CONFIG_NI5010=y: <-- snip --> ... LD .tmp_vmlinux1 drivers/built-in.o:(.init.data+0x2b280): undefined reference to `ni5010_probe' make: *** [.tmp_vmlinux1] Error 1 <-- snip --> Signed-off-by: Adrian Bunk Cc: Andreas Mohr Cc: Jeff Garzik Cc: Jan-Pascal van Best Signed-off-by: Andrew Morton --- drivers/net/ni5010.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/net/ni5010.c~ni5010-netcard-cleanup-fix drivers/net/ni5010.c --- a/drivers/net/ni5010.c~ni5010-netcard-cleanup-fix +++ a/drivers/net/ni5010.c @@ -117,7 +117,7 @@ static void ni5010_show_registers(struc static int io; static int irq; -static struct net_device * __init ni5010_probe(int unit) +struct net_device * __init ni5010_probe(int unit) { struct net_device *dev = alloc_etherdev(sizeof(struct ni5010_local)); int *port; _