Commit aa5d3ff9 authored by Magnus Damm's avatar Magnus Damm Committed by Paul Mundt

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: default avatarMagnus Damm <damm@igel.co.jp>
Signed-off-by: default avatarPaul Mundt <lethal@linux-sh.org>
parent 8ce0143b
...@@ -80,7 +80,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -80,7 +80,6 @@ struct pci_channel board_pci_channels[] = {
{ sh5_pci_init, &sh5_pci_ops, NULL, NULL, 0, 0xff }, { sh5_pci_init, &sh5_pci_ops, NULL, NULL, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
int __init pcibios_init_platform(void) int __init pcibios_init_platform(void)
{ {
......
...@@ -43,8 +43,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -43,8 +43,6 @@ struct pci_channel board_pci_channels[] = {
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map sh7751_pci_map = { static struct sh4_pci_address_map sh7751_pci_map = {
.window0 = { .window0 = {
.base = SH7751_CS3_BASE_ADDR, .base = SH7751_CS3_BASE_ADDR,
......
...@@ -46,7 +46,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -46,7 +46,6 @@ struct pci_channel board_pci_channels[] = {
{ sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff }, { sh7780_pci_init, &sh4_pci_ops, &sh7780_io_resource, &sh7780_mem_resource, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map sh7780_pci_map = { static struct sh4_pci_address_map sh7780_pci_map = {
.window0 = { .window0 = {
......
...@@ -50,7 +50,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -50,7 +50,6 @@ struct pci_channel board_pci_channels[] = {
{ sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map sh7751_pci_map = { static struct sh4_pci_address_map sh7751_pci_map = {
.window0 = { .window0 = {
......
...@@ -52,7 +52,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -52,7 +52,6 @@ struct pci_channel board_pci_channels[] = {
{ sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff }, { sh7780_pci_init, &sh4_pci_ops, &sdk7780_io_resource, &sdk7780_mem_resource, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map sdk7780_pci_map = { static struct sh4_pci_address_map sdk7780_pci_map = {
.window0 = { .window0 = {
......
...@@ -61,7 +61,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -61,7 +61,6 @@ struct pci_channel board_pci_channels[] = {
{ sh7780_pci_init, &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff }, { sh7780_pci_init, &sh4_pci_ops, &se7780_io_resource, &se7780_mem_resource, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map se7780_pci_map = { static struct sh4_pci_address_map se7780_pci_map = {
.window0 = { .window0 = {
......
...@@ -55,7 +55,6 @@ struct pci_channel board_pci_channels[] = { ...@@ -55,7 +55,6 @@ struct pci_channel board_pci_channels[] = {
{ sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff }, { sh7751_pci_init, &sh4_pci_ops, &sh7751_io_resource, &sh7751_mem_resource, 0, 0xff },
{ NULL, NULL, NULL, 0, 0 }, { NULL, NULL, NULL, 0, 0 },
}; };
EXPORT_SYMBOL(board_pci_channels);
static struct sh4_pci_address_map sh7751_pci_map = { static struct sh4_pci_address_map sh7751_pci_map = {
.window0 = { .window0 = {
......
...@@ -187,3 +187,5 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr) ...@@ -187,3 +187,5 @@ void pci_iounmap(struct pci_dev *dev, void __iomem *addr)
iounmap(addr); iounmap(addr);
} }
EXPORT_SYMBOL(pci_iounmap); EXPORT_SYMBOL(pci_iounmap);
EXPORT_SYMBOL(board_pci_channels);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment