Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45364
b: refs/heads/master
c: 5c334ee
h: refs/heads/master
v: v3
  • Loading branch information
Sylvain Munaut authored and Paul Mackerras committed Jan 9, 2007
1 parent 15a7b1a commit 92a2490
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 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: 56c336cb05d58991f3e9d5f0ec098ba0f219a15e
refs/heads/master: 5c334eed6ecd66cebfbc80267149e755510d8bc8
1 change: 1 addition & 0 deletions trunk/arch/powerpc/platforms/52xx/lite5200.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ define_machine(lite52xx) {
.name = "lite52xx",
.probe = lite52xx_probe,
.setup_arch = lite52xx_setup_arch,
.init = mpc52xx_declare_of_platform_devices,
.init_IRQ = mpc52xx_init_irq,
.get_irq = mpc52xx_get_irq,
.show_cpuinfo = lite52xx_show_cpuinfo,
Expand Down
7 changes: 4 additions & 3 deletions trunk/arch/powerpc/platforms/52xx/mpc52xx_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,12 @@ mpc52xx_setup_cpu(void)
if (xlb) iounmap(xlb);
}

static int __init
void __init
mpc52xx_declare_of_platform_devices(void)
{
/* Find every child of the SOC node and add it to of_platform */
return of_platform_bus_probe(NULL, NULL, NULL);
if (of_platform_bus_probe(NULL, NULL, NULL))
printk(KERN_ERR __FILE__ ": "
"Error while probing of_platform bus\n");
}

device_initcall(mpc52xx_declare_of_platform_devices);
1 change: 1 addition & 0 deletions trunk/include/asm-powerpc/mpc52xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,7 @@ struct mpc52xx_cdm {
extern void __iomem * mpc52xx_find_and_map(const char *);
extern unsigned int mpc52xx_find_ipb_freq(struct device_node *node);
extern void mpc52xx_setup_cpu(void);
extern void mpc52xx_declare_of_platform_devices(void);

extern void mpc52xx_init_irq(void);
extern unsigned int mpc52xx_get_irq(void);
Expand Down

0 comments on commit 92a2490

Please sign in to comment.