Skip to content

Commit

Permalink
[MIPS] BCM1480: Use constants instead of magic numbers in PCI code.
Browse files Browse the repository at this point in the history
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
  • Loading branch information
Ralf Baechle committed Jan 29, 2008
1 parent e2defae commit 07c019b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/mips/pci/pci-bcm1480.c
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ struct pci_ops bcm1480_pci_ops = {

static struct resource bcm1480_mem_resource = {
.name = "BCM1480 PCI MEM",
.start = 0x30000000UL,
.end = 0x3fffffffUL,
.start = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES,
.end = A_BCM1480_PHYS_PCI_MEM_MATCH_BYTES + 0xfffffffUL,
.flags = IORESOURCE_MEM,
};

Expand Down
4 changes: 2 additions & 2 deletions arch/mips/pci/pci-bcm1480ht.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ struct pci_ops bcm1480ht_pci_ops = {

static struct resource bcm1480ht_mem_resource = {
.name = "BCM1480 HT MEM",
.start = 0x40000000UL,
.end = 0x5fffffffUL,
.start = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES,
.end = A_BCM1480_PHYS_HT_MEM_MATCH_BYTES + 0x1fffffffUL,
.flags = IORESOURCE_MEM,
};

Expand Down

0 comments on commit 07c019b

Please sign in to comment.