diff options
author | Magnus Damm <damm@igel.co.jp> | 2009-03-11 02:46:14 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:12 -0400 |
commit | d0e3db40e2a1352aa2a2f425a7d4631bddc03d51 (patch) | |
tree | 275392db569a7f3808d8f86cfcb4874bfe81f997 /arch/sh/drivers/pci/pci-sh5.c | |
parent | b8b47bfbe4eb1ae0e6891e49c86a5f4fb00413be (diff) |
sh: add init member to pci_channel data
This patch adds an init callback to struct pci_channel and makes sure
it is initialized properly. Code is added to call this init function
from pcibios_init(). Return values are adjusted and a warning is is
printed if init fails.
Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pci-sh5.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh5.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/pci-sh5.c b/arch/sh/drivers/pci/pci-sh5.c index 7a97438762c8..008a02ec0d9f 100644 --- a/arch/sh/drivers/pci/pci-sh5.c +++ b/arch/sh/drivers/pci/pci-sh5.c | |||
@@ -27,6 +27,12 @@ | |||
27 | unsigned long pcicr_virt; | 27 | unsigned long pcicr_virt; |
28 | unsigned long PCI_IO_AREA; | 28 | unsigned long PCI_IO_AREA; |
29 | 29 | ||
30 | int __init sh5_pci_init(struct pci_channel *chan) | ||
31 | { | ||
32 | pr_debug("PCI: Starting intialization.\n"); | ||
33 | return pcibios_init_platform(); | ||
34 | } | ||
35 | |||
30 | /* Rounds a number UP to the nearest power of two. Used for | 36 | /* Rounds a number UP to the nearest power of two. Used for |
31 | * sizing the PCI window. | 37 | * sizing the PCI window. |
32 | */ | 38 | */ |