diff options
author | Paul Mundt <lethal@linux-sh.org> | 2010-10-14 23:15:56 +0200 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2010-10-14 23:15:56 +0200 |
commit | a80be1680502f99de5f9565c491208e90a9a3afe (patch) | |
tree | 987116f70cca17e598ed61fd01aecabe0d36c631 /arch/sh/drivers/pci/pcie-sh7786.c | |
parent | sh: mach-sdk7786: Add support for the FPGA SRAM. (diff) | |
download | linux-a80be1680502f99de5f9565c491208e90a9a3afe.tar.xz linux-a80be1680502f99de5f9565c491208e90a9a3afe.zip |
sh: pci: Convert to upper/lower_32_bits() helpers.
Instead of hand-rolling our own, just use the generic ones instead.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
Diffstat (limited to 'arch/sh/drivers/pci/pcie-sh7786.c')
-rw-r--r-- | arch/sh/drivers/pci/pcie-sh7786.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/sh/drivers/pci/pcie-sh7786.c b/arch/sh/drivers/pci/pcie-sh7786.c index ae0b2c9b70a0..96e9b058aa1d 100644 --- a/arch/sh/drivers/pci/pcie-sh7786.c +++ b/arch/sh/drivers/pci/pcie-sh7786.c @@ -446,9 +446,9 @@ static int __init pcie_init(struct sh7786_pcie_port *port) mask = (roundup_pow_of_two(size) / SZ_256K) - 1; pci_write_reg(chan, mask << 18, SH4A_PCIEPAMR(win)); - pci_write_reg(chan, RES_TO_U32_HIGH(res->start), + pci_write_reg(chan, upper_32_bits(res->start), SH4A_PCIEPARH(win)); - pci_write_reg(chan, RES_TO_U32_LOW(res->start), + pci_write_reg(chan, lower_32_bits(res->start), SH4A_PCIEPARL(win)); mask = MASK_PARE; |