Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[MIPS] BCM1480: Use constants instead of magic numbers in PCI code.

Signed-off-by: Ralf Baechle <ralf@linux-mips.org>

+4 -4
+2 -2
arch/mips/pci/pci-bcm1480.c
··· 178 178 179 179 static struct resource bcm1480_mem_resource = { 180 180 .name = "BCM1480 PCI MEM", 181 - .start = 0x30000000UL, 182 - .end = 0x3fffffffUL, 181 + .start = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES, 182 + .end = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES + 0xfffffffUL, 183 183 .flags = IORESOURCE_MEM, 184 184 }; 185 185
+2 -2
arch/mips/pci/pci-bcm1480ht.c
··· 173 173 174 174 static struct resource bcm1480ht_mem_resource = { 175 175 .name = "BCM1480 HT MEM", 176 - .start = 0x40000000UL, 177 - .end = 0x5fffffffUL, 176 + .start = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES, 177 + .end = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES + 0x1fffffffUL, 178 178 .flags = IORESOURCE_MEM, 179 179 }; 180 180