Skip to content

Commit

Permalink
[PATCH] net: Fix compiler-error on dgrs.c when !CONFIG_PCI
Browse files Browse the repository at this point in the history
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 <ricknu-0@student.ltu.se>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Richard Knutsson authored and Linus Torvalds committed Nov 22, 2005
1 parent 989e4d6 commit 18317ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/dgrs.c
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down

0 comments on commit 18317ab

Please sign in to comment.