summaryrefslogtreecommitdiff
path: root/arch/sh/drivers/pci/ops-sh4.c
diff options
context:
space:
mode:
authorMagnus Damm <magnus.damm@gmail.com>2008-02-19 21:35:04 +0900
committerPaul Mundt <lethal@linux-sh.org>2009-04-16 16:00:13 +0900
commite4c6a3604e07185046e2ce4be82a201f4447d788 (patch)
tree8abb5616899458a0ae197bdac3e36b7360869f25 /arch/sh/drivers/pci/ops-sh4.c
parentb6706ef10f75921733d7275fd45d268f2f6254c8 (diff)
sh: add reg_base member to pci_channel
Store the base address of the pci host controller registers in struct pci_channel and use the address in pci_read_reg() and pci_write_reg(). 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/ops-sh4.c')
-rw-r--r--arch/sh/drivers/pci/ops-sh4.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/ops-sh4.c b/arch/sh/drivers/pci/ops-sh4.c
index ee62e6de7133..540683d07c77 100644
--- a/arch/sh/drivers/pci/ops-sh4.c
+++ b/arch/sh/drivers/pci/ops-sh4.c
@@ -121,8 +121,8 @@ int __init sh4_pci_check_direct(struct pci_channel *chan)
if (pci_read_reg(chan, SH4_PCIPAR) == P1SEG) {
pci_write_reg(chan, tmp, SH4_PCIPAR);
printk(KERN_INFO "PCI: Using configuration type 1\n");
- request_region(PCI_REG(SH4_PCIPAR), 8, "PCI conf1");
-
+ request_region(chan->reg_base + SH4_PCIPAR, 8,
+ "PCI conf1");
return 0;
}