From: Richard Knutsson Date: Tue, 22 Nov 2005 05:32:03 +0000 (-0800) Subject: [PATCH] net: Fix compiler-error on dgrs.c when !CONFIG_PCI X-Git-Tag: v2.6.15-rc3~125 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18317ab0ca5ac0c654be3eac31ebb781b4a5e9b2;p=linux-2.6 [PATCH] net: Fix compiler-error on dgrs.c when !CONFIG_PCI drivers/net/dgrs.c: In function `dgrs_init_module': drivers/net/dgrs.c:1598: `dgrs_pci_driver' undeclared (first use in this function) Signed-off-by: Richard Knutsson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/drivers/net/dgrs.c b/drivers/net/dgrs.c index 2a290cc397..70b47e4c4e 100644 --- a/drivers/net/dgrs.c +++ b/drivers/net/dgrs.c @@ -1458,6 +1458,8 @@ static struct pci_driver dgrs_pci_driver = { .probe = dgrs_pci_probe, .remove = __devexit_p(dgrs_pci_remove), }; +#else +static struct pci_driver dgrs_pci_driver = {}; #endif