diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 07:35:40 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:14 -0400 |
commit | aa5d3ff99cc1f3dfe262ab9dd9179131fcfe39fd (patch) | |
tree | 1de49bf116eef129c052db99015f68faa22406c7 | |
parent | 8ce0143b11cdc519b8e1fd94a262b654ef0bc3ab (diff) |
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.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
-rw-r--r-- | arch/sh/drivers/pci/ops-cayman.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-lboxre2.c | 2 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-r7780rp.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-rts7751r2d.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-sdk7780.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-se7780.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/ops-titan.c | 1 | ||||
-rw-r--r-- | arch/sh/drivers/pci/pci.c | 2 |
8 files changed, 2 insertions, 8 deletions
diff --git a/arch/sh/drivers/pci/ops-cayman.c b/arch/sh/drivers/pci/ops-cayman.c index f4a5e14f7e5..cbaaf0234b7 100644 --- a/arch/sh/drivers/pci/ops-cayman.c +++ b/arch/sh/drivers/pci/ops-cayman.c | |||
@@ -80,7 +80,6 @@ struct pci_channel board_pci_channels[] = { | |||
80 | { sh5_pci_init, &sh5_pci_ops, NULL, NULL, 0, 0xff }, | 80 | { sh5_pci_init, &sh5_pci_ops, NULL, NULL, 0, 0xff }, |
81 | { NULL, NULL, NULL, 0, 0 }, | 81 | { NULL, NULL, NULL, 0, 0 }, |
82 | }; | 82 | }; |
83 | EXPORT_SYMBOL(board_pci_channels); | ||
84 | 83 | ||
85 | int __init pcibios_init_platform(void) | 84 | int __init pcibios_init_platform(void) |
86 | { | 85 | { |
diff --git a/arch/sh/drivers/pci/ops-lboxre2.c b/arch/sh/drivers/pci/ops-lboxre2.c index f606df2195c..781496bfb1f 100644 --- a/arch/sh/drivers/pci/ops-lboxre2.c +++ b/arch/sh/drivers/pci/ops-lboxre2.c | |||
@@ -43,8 +43,6 @@ struct pci_channel board_pci_channels[] = { | |||
43 | { NULL, NULL, NULL, 0, 0 }, | 43 | { NULL, NULL, NULL, 0, 0 }, |
44 | }; | 44 | }; |
45 | 45 | ||
46 | EXPORT_SYMBOL(board_pci_channels); | ||
47 | |||
48 | static struct sh4_pci_address_map sh7751_pci_map = { | 46 | static struct sh4_pci_address_map sh7751_pci_map = { |
49 | .window0 = { | 47 | .window0 = { |
50 | .base = SH7751_CS3_BASE_ADDR, | 48 | .base = SH7751_CS3_BASE_ADDR, |
diff --git a/arch/sh/drivers/pci/ops-r7780rp.c b/arch/sh/drivers/pci/ops-r7780rp.c index b51b7e4078d..c58f1cff9fb 100644 --- a/arch/sh/drivers/pci/ops-r7780rp.c +++ b/arch/sh/drivers/pci/ops-r7780rp.c | |||
@@ -46,7 +46,6 @@ struct pci_channel board_pci_channels[] = { | |||
46 | { sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff }, | 46 | { sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff }, |
47 | { NULL, NULL, NULL, 0, 0 }, | 47 | { NULL, NULL, NULL, 0, 0 }, |
48 | }; | 48 | }; |
49 | EXPORT_SYMBOL(board_pci_channels); | ||
50 | 49 | ||
51 | static struct sh4_pci_address_map sh7780_pci_map = { | 50 | static struct sh4_pci_address_map sh7780_pci_map = { |
52 | .window0 = { | 51 | .window0 = { |
diff --git a/arch/sh/drivers/pci/ops-rts7751r2d.c b/arch/sh/drivers/pci/ops-rts7751r2d.c index 58ed1d58cff..d374cd37f45 100644 --- a/arch/sh/drivers/pci/ops-rts7751r2d.c +++ b/arch/sh/drivers/pci/ops-rts7751r2d.c | |||
@@ -50,7 +50,6 @@ struct pci_channel board_pci_channels[] = { | |||
50 | { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | 50 | { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, |
51 | { NULL, NULL, NULL, 0, 0 }, | 51 | { NULL, NULL, NULL, 0, 0 }, |
52 | }; | 52 | }; |
53 | EXPORT_SYMBOL(board_pci_channels); | ||
54 | 53 | ||
55 | static struct sh4_pci_address_map sh7751_pci_map = { | 54 | static struct sh4_pci_address_map sh7751_pci_map = { |
56 | .window0 = { | 55 | .window0 = { |
diff --git a/arch/sh/drivers/pci/ops-sdk7780.c b/arch/sh/drivers/pci/ops-sdk7780.c index 7277cd15ae6..b34fbc54a7c 100644 --- a/arch/sh/drivers/pci/ops-sdk7780.c +++ b/arch/sh/drivers/pci/ops-sdk7780.c | |||
@@ -52,7 +52,6 @@ struct pci_channel board_pci_channels[] = { | |||
52 | { sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff }, | 52 | { sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff }, |
53 | { NULL, NULL, NULL, 0, 0 }, | 53 | { NULL, NULL, NULL, 0, 0 }, |
54 | }; | 54 | }; |
55 | EXPORT_SYMBOL(board_pci_channels); | ||
56 | 55 | ||
57 | static struct sh4_pci_address_map sdk7780_pci_map = { | 56 | static struct sh4_pci_address_map sdk7780_pci_map = { |
58 | .window0 = { | 57 | .window0 = { |
diff --git a/arch/sh/drivers/pci/ops-se7780.c b/arch/sh/drivers/pci/ops-se7780.c index 76a74fb42fb..47302077a0c 100644 --- a/arch/sh/drivers/pci/ops-se7780.c +++ b/arch/sh/drivers/pci/ops-se7780.c | |||
@@ -61,7 +61,6 @@ struct pci_channel board_pci_channels[] = { | |||
61 | { sh7780_pci_init, &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff }, | 61 | { sh7780_pci_init, &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff }, |
62 | { NULL, NULL, NULL, 0, 0 }, | 62 | { NULL, NULL, NULL, 0, 0 }, |
63 | }; | 63 | }; |
64 | EXPORT_SYMBOL(board_pci_channels); | ||
65 | 64 | ||
66 | static struct sh4_pci_address_map se7780_pci_map = { | 65 | static struct sh4_pci_address_map se7780_pci_map = { |
67 | .window0 = { | 66 | .window0 = { |
diff --git a/arch/sh/drivers/pci/ops-titan.c b/arch/sh/drivers/pci/ops-titan.c index ffa79bdf475..31ed03716a2 100644 --- a/arch/sh/drivers/pci/ops-titan.c +++ b/arch/sh/drivers/pci/ops-titan.c | |||
@@ -55,7 +55,6 @@ struct pci_channel board_pci_channels[] = { | |||
55 | { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, | 55 | { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, |
56 | { NULL, NULL, NULL, 0, 0 }, | 56 | { NULL, NULL, NULL, 0, 0 }, |
57 | }; | 57 | }; |
58 | EXPORT_SYMBOL(board_pci_channels); | ||
59 | 58 | ||
60 | static struct sh4_pci_address_map sh7751_pci_map = { | 59 | static struct sh4_pci_address_map sh7751_pci_map = { |
61 | .window0 = { | 60 | .window0 = { |
diff --git a/arch/sh/drivers/pci/pci.c b/arch/sh/drivers/pci/pci.c index b9aca547804..8aaacc99b71 100644 --- a/arch/sh/drivers/pci/pci.c +++ b/arch/sh/drivers/pci/pci.c | |||
@@ -187,3 +187,5 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr) | |||
187 | iounmap(addr); | 187 | iounmap(addr); |
188 | } | 188 | } |
189 | EXPORT_SYMBOL(pci_iounmap); | 189 | EXPORT_SYMBOL(pci_iounmap); |
190 | |||
191 | EXPORT_SYMBOL(board_pci_channels); | ||