diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 02:08:01 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-04-17 02:08:01 -0400 |
commit | ab78cbcf6877334fc20868b7df7887349e2e01c8 (patch) | |
tree | 227497c6325f89b81e9a2b982f0af7e1c660b2f7 /arch/sh/drivers | |
parent | 4e7b7fdb129995640f144b7de114e109c6b46a2a (diff) |
sh: pci: Use the proper write size for class/sub-class code.
Don't use pci_write_reg() for these, as it defaults to 32-bit. Rather
than using the helper, use __raw_writeb() directly.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers')
-rw-r--r-- | arch/sh/drivers/pci/pci-sh7780.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pci-sh7780.c b/arch/sh/drivers/pci/pci-sh7780.c index 63b5151e9aaa..19bac2168f4f 100644 --- a/arch/sh/drivers/pci/pci-sh7780.c +++ b/arch/sh/drivers/pci/pci-sh7780.c | |||
@@ -78,8 +78,10 @@ int __init sh7780_pcic_init(struct pci_channel *chan, | |||
78 | { | 78 | { |
79 | u32 word; | 79 | u32 word; |
80 | 80 | ||
81 | pci_write_reg(chan, PCI_CLASS_BRIDGE_HOST >> 8, SH7780_PCIBCC); | 81 | __raw_writeb(PCI_CLASS_BRIDGE_HOST >> 8, |
82 | pci_write_reg(chan, PCI_CLASS_BRIDGE_HOST & 0xff, SH7780_PCISUB); | 82 | chan->reg_base + SH7780_PCIBCC); |
83 | __raw_writeb(PCI_CLASS_BRIDGE_HOST & 0xff, | ||
84 | chan->reg_base + SH7780_PCISUB); | ||
83 | 85 | ||
84 | /* set the command/status bits to: | 86 | /* set the command/status bits to: |
85 | * Wait Cycle Control + Parity Enable + Bus Master + | 87 | * Wait Cycle Control + Parity Enable + Bus Master + |