Skip to contentSkip to conversation

sh: export board_pci_channels in one place

PATCH In review Magnus Damm 1 participant 1 message Feb 19, 2008 SuperH

lore
Share & tools
lore
#0 lore raw

PATCH 9/9 sh: export board_pci_channels in one place

Instead of sometimes exporting board_pci_channels[] in the board specific code just export it in one place.

---

 arch/sh/drivers/pci/ops-cayman.c     |    1 -
 arch/sh/drivers/pci/ops-lboxre2.c    |    2 --
 arch/sh/drivers/pci/ops-r7780rp.c    |    1 -
 arch/sh/drivers/pci/ops-rts7751r2d.c |    1 -
 arch/sh/drivers/pci/ops-sdk7780.c    |    1 -
 arch/sh/drivers/pci/ops-se7780.c     |    1 -
 arch/sh/drivers/pci/ops-titan.c      |    1 -
 arch/sh/drivers/pci/pci.c            |    2 ++
 8 files changed, 2 insertions(+), 8 deletions(-)
arch/sh/drivers/pci/ops-cayman.c +0 -1
@@ -85,7 +85,6 @@ struct pci_channel board_pci_channels[] 
 	{ &sh5_pci_ops, NULL, NULL, 0, 0xff },
 	{ NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 int __init pcibios_init_platform(void)
 {
arch/sh/drivers/pci/ops-lboxre2.c +0 -2
@@ -27,8 +27,6 @@ struct pci_channel board_pci_channels[] 
 	{ },
 };
 
-EXPORT_SYMBOL(board_pci_channels);
-
 static struct sh4_pci_address_map sh7751_pci_map = {
 	.window0	= {
 		.base	= SH7751_CS3_BASE_ADDR,
arch/sh/drivers/pci/ops-r7780rp.c +0 -1
@@ -30,7 +30,6 @@ struct pci_channel board_pci_channels[] 
 	{ sh7780_pci_init, },
 	{ },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7780_pci_map = {
 	.window0	= {
arch/sh/drivers/pci/ops-rts7751r2d.c +0 -1
@@ -34,7 +34,6 @@ struct pci_channel board_pci_channels[] 
 	{ sh7751_pci_init, },
 	{ },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7751_pci_map = {
 	.window0	= {
arch/sh/drivers/pci/ops-sdk7780.c +0 -1
@@ -38,7 +38,6 @@ struct pci_channel board_pci_channels[] 
 	{ sh7780_pci_init, },
 	{ },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sdk7780_pci_map = {
 	.window0	= {
arch/sh/drivers/pci/ops-se7780.c +0 -1
@@ -45,7 +45,6 @@ struct pci_channel board_pci_channels[] 
 	{ sh7780_pci_init, },
 	{ },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map se7780_pci_map = {
 	.window0	= {
arch/sh/drivers/pci/ops-titan.c +0 -1
@@ -41,7 +41,6 @@ struct pci_channel board_pci_channels[] 
 	{ sh7751_pci_init, },
 	{ },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7751_pci_map = {
 	.window0	= {
arch/sh/drivers/pci/pci.c +2 -0
@@ -237,3 +237,5 @@ void pci_iounmap(struct pci_dev *dev, vo
 	iounmap(addr);
 }
 EXPORT_SYMBOL(pci_iounmap);
+
+EXPORT_SYMBOL(board_pci_channels);