diff options
author | Lucas Stach <dev@lynxeye.de> | 2014-10-04 19:40:07 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-08 08:39:00 +0200 |
commit | 22eb395f6811dbe47815403f15c6d31692f1ac63 (patch) | |
tree | 1eeee1604375e6dc312ede7239804ae8a0fabcdd | |
parent | 86ef8cb8fb7f98e859d17a59306fc5e346604a92 (diff) | |
download | barebox-22eb395f6811dbe47815403f15c6d31692f1ac63.tar.gz barebox-22eb395f6811dbe47815403f15c6d31692f1ac63.tar.xz |
MIPS: malta: fix pci IO resource assignment
Does the same thing as the Linux kernel now.
Signed-off-by: Lucas Stach <dev@lynxeye.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | arch/mips/mach-malta/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/mach-malta/pci.c b/arch/mips/mach-malta/pci.c index 90351758e0..47c0e228a7 100644 --- a/arch/mips/mach-malta/pci.c +++ b/arch/mips/mach-malta/pci.c @@ -151,7 +151,7 @@ static struct pci_controller gt64120_controller = { static int pcibios_init(void) { - resource_size_t start, end, map, start1, end1, map1, mask, res_end; + resource_size_t start, end, map, start1, end1, map1, mask; /* * Due to a bug in the Galileo system controller, we need @@ -207,7 +207,7 @@ static int pcibios_init(void) BUG_ON((start & GT_PCI_HD_MSK) != (map & GT_PCI_HD_MSK) && mask != ~((mask & -mask) - 1)); gt64120_io_resource.start = map & mask; - res_end = (map & mask) | ~mask; + gt64120_io_resource.end = (map & mask) | ~mask; gt64120_controller.io_offset = 0; /* Addresses are 36-bit, so do shifts in the destinations. */ gt64120_io_resource.start <<= GT_PCI_DCRM_SHF; |