Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 181161
b: refs/heads/master
c: bcf3935
h: refs/heads/master
i:
  181159: 25a8179
v: v3
  • Loading branch information
Paul Mundt committed Feb 1, 2010
1 parent ed9b27c commit 96090bc
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 17 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: 85b59f5bb24aeca1a987cbb206e228bf630c8327
refs/heads/master: bcf39352eb9e9026f7a1028d4bce3707b65f104b
4 changes: 1 addition & 3 deletions trunk/arch/sh/drivers/pci/pci-dreamcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,6 @@ static int __init gapspci_init(void)
outl(0x00002001, GAPSPCI_BBA_CONFIG+0x10);
outl(0x01000000, GAPSPCI_BBA_CONFIG+0x14);

register_pci_controller(&dreamcast_pci_controller);

return 0;
return register_pci_controller(&dreamcast_pci_controller);
}
arch_initcall(gapspci_init);
4 changes: 1 addition & 3 deletions trunk/arch/sh/drivers/pci/pci-sh5.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,6 @@ static int __init sh5pci_init(void)
sh5_mem_resource.start = memStart;
sh5_mem_resource.end = memStart + memSize;

register_pci_controller(&sh5pci_controller);

return 0;
return register_pci_controller(&sh5pci_controller);
}
arch_initcall(sh5pci_init);
4 changes: 1 addition & 3 deletions trunk/arch/sh/drivers/pci/pci-sh7751.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,6 @@ static int __init sh7751_pci_init(void)
word = SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_ARBM;
pci_write_reg(chan, word, SH4_PCICR);

register_pci_controller(chan);

return 0;
return register_pci_controller(chan);
}
arch_initcall(sh7751_pci_init);
5 changes: 4 additions & 1 deletion trunk/arch/sh/drivers/pci/pci-sh7780.c
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ static int __init sh7780_pci_init(void)
size_t memsize;
unsigned int id;
const char *type;
int ret;

printk(KERN_NOTICE "PCI: Starting intialization.\n");

Expand Down Expand Up @@ -197,7 +198,9 @@ static int __init sh7780_pci_init(void)
__raw_writel(SH4_PCICR_PREFIX | SH4_PCICR_CFIN | SH4_PCICR_FTO,
chan->reg_base + SH4_PCICR);

register_pci_controller(chan);
ret = register_pci_controller(chan);
if (unlikely(ret))
return ret;

sh7780_pci66_init(chan);

Expand Down
5 changes: 3 additions & 2 deletions trunk/arch/sh/drivers/pci/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ static void __devinit pcibios_scanbus(struct pci_channel *hose)

static DEFINE_MUTEX(pci_scan_mutex);

void __devinit register_pci_controller(struct pci_channel *hose)
int __devinit register_pci_controller(struct pci_channel *hose)
{
if (request_resource(&iomem_resource, hose->mem_resource) < 0)
goto out;
Expand Down Expand Up @@ -88,10 +88,11 @@ void __devinit register_pci_controller(struct pci_channel *hose)
mutex_unlock(&pci_scan_mutex);
}

return;
return 0;

out:
printk(KERN_WARNING "Skipping PCI bus scan due to resource conflict\n");
return -1;
}

static int __init pcibios_init(void)
Expand Down
4 changes: 1 addition & 3 deletions trunk/arch/sh/drivers/pci/pcie-sh7786.c
Original file line number Diff line number Diff line change
Expand Up @@ -296,9 +296,7 @@ static int __devinit sh7786_pcie_init_hw(struct sh7786_pcie_port *port)
if (unlikely(ret < 0))
return ret;

register_pci_controller(port->hose);

return 0;
return register_pci_controller(port->hose);
}

static struct sh7786_pcie_hwops sh7786_65nm_pcie_hwops __initdata = {
Expand Down
2 changes: 1 addition & 1 deletion trunk/arch/sh/include/asm/pci.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ struct pci_channel {
unsigned int need_domain_info;
};

extern void register_pci_controller(struct pci_channel *hose);
extern int register_pci_controller(struct pci_channel *hose);
extern int pci_is_66mhz_capable(struct pci_channel *hose,
int top_bus, int current_bus);

Expand Down

0 comments on commit 96090bc

Please sign in to comment.