sh: export board_pci_channels in one place
authorMagnus Damm <magnus.damm@gmail.com>
Tue, 19 Feb 2008 12:35:40 +0000 (21:35 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 16 Apr 2009 07:00:14 +0000 (16:00 +0900)
Instead of sometimes exporting board_pci_channels[] in the board specific
code just export it in one place.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/pci/ops-cayman.c
arch/sh/drivers/pci/ops-lboxre2.c
arch/sh/drivers/pci/ops-r7780rp.c
arch/sh/drivers/pci/ops-rts7751r2d.c
arch/sh/drivers/pci/ops-sdk7780.c
arch/sh/drivers/pci/ops-se7780.c
arch/sh/drivers/pci/ops-titan.c
arch/sh/drivers/pci/pci.c

index f4a5e14f7e5aca16663b652d1afd63f2f0b4f0c9..cbaaf0234b72c29b94ad044138a5c9bc61cffdd5 100644 (file)
@@ -80,7 +80,6 @@ struct pci_channel board_pci_channels[] = {
        { sh5_pci_init, &sh5_pci_ops, NULL, NULL, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 int __init pcibios_init_platform(void)
 {
index f606df2195c1f2617089454ba69934dfb8b17dea..781496bfb1f91da91c1369af35541819ff0b82a7 100644 (file)
@@ -43,8 +43,6 @@ struct pci_channel board_pci_channels[] = {
        { NULL, NULL, NULL, 0, 0 },
 };
 
-EXPORT_SYMBOL(board_pci_channels);
-
 static struct sh4_pci_address_map sh7751_pci_map = {
        .window0        = {
                .base   = SH7751_CS3_BASE_ADDR,
index b51b7e4078d0b54df8b1453eb899b502491bb4e7..c58f1cff9fbacddcd580761ff62a079fec0488b8 100644 (file)
@@ -46,7 +46,6 @@ struct pci_channel board_pci_channels[] = {
        { sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7780_pci_map = {
        .window0        = {
index 58ed1d58cffb1a70fd058814ef1c964797e852b2..d374cd37f455a4e24840684b6caaccc878492c53 100644 (file)
@@ -50,7 +50,6 @@ struct pci_channel board_pci_channels[] = {
        { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7751_pci_map = {
        .window0        = {
index 7277cd15ae6aef3daefcd584cc38962e64c0b0fc..b34fbc54a7c670da165f84a3a4746e13343c3174 100644 (file)
@@ -52,7 +52,6 @@ struct pci_channel board_pci_channels[] = {
        { sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sdk7780_pci_map = {
        .window0        = {
index 76a74fb42fb01e56baeaf72876be263e57235ae7..47302077a0c81f9f4623d96c0e0c7b92cbd26c93 100644 (file)
@@ -61,7 +61,6 @@ struct pci_channel board_pci_channels[] = {
        { sh7780_pci_init, &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map se7780_pci_map = {
        .window0        = {
index ffa79bdf475570bea85d92a045c2166178f047ec..31ed03716a2c8e9fee77cba9729c906371f652b1 100644 (file)
@@ -55,7 +55,6 @@ struct pci_channel board_pci_channels[] = {
        { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
        { NULL, NULL, NULL, 0, 0 },
 };
-EXPORT_SYMBOL(board_pci_channels);
 
 static struct sh4_pci_address_map sh7751_pci_map = {
        .window0        = {
index b9aca5478048ee9a7308b28a0dc7d5f03a603759..8aaacc99b71037ab64f235b0a9521d7f41f386d1 100644 (file)
@@ -187,3 +187,5 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
        iounmap(addr);
 }
 EXPORT_SYMBOL(pci_iounmap);
+
+EXPORT_SYMBOL(board_pci_channels);