Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319618
b: refs/heads/master
c: 76f42fe
h: refs/heads/master
v: v3
  • Loading branch information
Jonas Gorski authored and Ralf Baechle committed Jul 24, 2012
1 parent bda7fc3 commit 45f835d
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5766aea5b9b7519654261c27b639f567b5415b4
refs/heads/master: 76f42fe8117c85fced0135b23835890cfa41a47b
25 changes: 17 additions & 8 deletions trunk/arch/mips/pci/pci-bcm63xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,10 @@ static void bcm63xx_int_cfg_writel(u32 val, u32 reg)

void __iomem *pci_iospace_start;

static int __init bcm63xx_pci_init(void)
static int __init bcm63xx_register_pci(void)
{
unsigned int mem_size;
u32 val;

if (!BCMCPU_IS_6348() && !BCMCPU_IS_6358() && !BCMCPU_IS_6368())
return -ENODEV;

if (!bcm63xx_pci_enabled)
return -ENODEV;

/*
* configuration access are done through IO space, remap 4
* first bytes to access it from CPU.
Expand Down Expand Up @@ -221,4 +214,20 @@ static int __init bcm63xx_pci_init(void)
return 0;
}


static int __init bcm63xx_pci_init(void)
{
if (!bcm63xx_pci_enabled)
return -ENODEV;

switch (bcm63xx_get_cpu_id()) {
case BCM6348_CPU_ID:
case BCM6358_CPU_ID:
case BCM6368_CPU_ID:
return bcm63xx_register_pci();
default:
return -ENODEV;
}
}

arch_initcall(bcm63xx_pci_init);

0 comments on commit 45f835d

Please sign in to comment.