diff options
author | Magnus Damm <magnus.damm@gmail.com> | 2008-02-19 07:34:55 -0500 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-16 03:00:13 -0400 |
commit | b6706ef10f75921733d7275fd45d268f2f6254c8 (patch) | |
tree | dfaf33eb6634b7d3fb9d53ddf92f7bbfcf69e45c /arch/sh/drivers/pci/pci-auto.c | |
parent | 710fa3c81151948ac4d836ef52b57cef91b0ab72 (diff) |
sh: hook in struct pci_channel in sysdata
Store a struct pci_channel pointer in bus->sysdata. This makes whatever
struct pci_channel assigned to a bus available for sh4_pci_read() and
sh4_pci_write(). We also modify PCIBIOS_MIN_IO and PCIBIOS_MIN_MEM to
use bus->sysdata - this to gives us support for multiple pci channels.
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-auto.c')
-rw-r--r-- | arch/sh/drivers/pci/pci-auto.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/sh/drivers/pci/pci-auto.c b/arch/sh/drivers/pci/pci-auto.c index cf48b12ee58c..1d715ec405b2 100644 --- a/arch/sh/drivers/pci/pci-auto.c +++ b/arch/sh/drivers/pci/pci-auto.c | |||
@@ -67,6 +67,7 @@ static struct pci_dev *fake_pci_dev(struct pci_channel *hose, | |||
67 | dev.devfn = devfn; | 67 | dev.devfn = devfn; |
68 | bus.number = busnr; | 68 | bus.number = busnr; |
69 | bus.ops = hose->pci_ops; | 69 | bus.ops = hose->pci_ops; |
70 | bus.sysdata = hose; | ||
70 | 71 | ||
71 | if(busnr != top_bus) | 72 | if(busnr != top_bus) |
72 | /* Fake a parent bus structure. */ | 73 | /* Fake a parent bus structure. */ |