ar71xx: fix a typo in the ar724x PCI code
authorGabor Juhos <juhosg@openwrt.org>
Thu, 1 Oct 2009 19:40:51 +0000 (19:40 +0000)
committerGabor Juhos <juhosg@openwrt.org>
Thu, 1 Oct 2009 19:40:51 +0000 (19:40 +0000)
SVN-Revision: 17806

target/linux/ar71xx/files/arch/mips/pci/pci-ar724x.c

index 0f9bd2f2262fda3a498b086bec99c57159fda9f7..02f3a8cc4c757279ad82220af7b5a702d0316028 100644 (file)
@@ -75,7 +75,7 @@ static void ar724x_pci_write(void __iomem *base, int where, int size, u32 value)
                data |= ((value & 0xFF) << s);
                break;
        case 2:
-               s = ((where & 2) << 4);
+               s = ((where & 2) << 3);
                data &= ~(0xFFFF << s);
                data |= ((value & 0xFFFF) << s);
                break;