Skip to content

Commit

Permalink
sh: pci: Use the proper write size for class/sub-class code.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Paul Mundt committed Apr 17, 2009
1 parent 4e7b7fd commit ab78cbc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions arch/sh/drivers/pci/pci-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,10 @@ int __init sh7780_pcic_init(struct pci_channel *chan,
{
u32 word;

pci_write_reg(chan, PCI_CLASS_BRIDGE_HOST >> 8, SH7780_PCIBCC);
pci_write_reg(chan, PCI_CLASS_BRIDGE_HOST & 0xff, SH7780_PCISUB);
__raw_writeb(PCI_CLASS_BRIDGE_HOST >> 8,
chan->reg_base + SH7780_PCIBCC);
__raw_writeb(PCI_CLASS_BRIDGE_HOST & 0xff,
chan->reg_base + SH7780_PCISUB);

/* set the command/status bits to:
* Wait Cycle Control + Parity Enable + Bus Master +
Expand Down

0 comments on commit ab78cbc

Please sign in to comment.