Skip to content

Commit

Permalink
sh dreamcast: export board_pci_channels
Browse files Browse the repository at this point in the history
This patch fixes the following build error:

<--  snip  -->

...
  MODPOST 1837 modules
ERROR: "board_pci_channels" [drivers/pcmcia/yenta_socket.ko] undefined!
...
make[2]: *** [__modpost] Error 1

<--  snip  -->

I freely admit that it's a pathological configuration, but as long as
it is allowed it should build.

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Adrian Bunk authored and Paul Mundt committed Jul 28, 2008
1 parent b19a33c commit 7223ce2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/sh/drivers/pci/ops-dreamcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
#include <linux/init.h>
#include <linux/irq.h>
#include <linux/pci.h>
#include <linux/module.h>

#include <asm/io.h>
#include <asm/irq.h>
Expand All @@ -48,6 +49,7 @@ struct pci_channel board_pci_channels[] = {
&gapspci_mem_resource, 0, 1 },
{ 0, }
};
EXPORT_SYMBOL(board_pci_channels);

/*
* The !gapspci_config_access case really shouldn't happen, ever, unless
Expand Down

0 comments on commit 7223ce2

Please sign in to comment.