Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 41051
b: refs/heads/master
c: 8746ed3
h: refs/heads/master
i:
  41049: ebbb840
  41047: 96d6f73
v: v3
  • Loading branch information
Kim Phillips authored and Paul Mackerras committed Nov 22, 2006
1 parent e5a267b commit c41f250
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: df9c23095fc8652798c41dd860676d3dafb2f1dc
refs/heads/master: 8746ed3dae14e87e9f7ad8e44649b72e22b33274
19 changes: 19 additions & 0 deletions trunk/arch/powerpc/platforms/83xx/mpc832x_mds.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
#include <linux/root_dev.h>
#include <linux/initrd.h>

#include <asm/of_device.h>
#include <asm/system.h>
#include <asm/atomic.h>
#include <asm/time.h>
Expand Down Expand Up @@ -136,6 +137,24 @@ static void __init mpc832x_sys_setup_arch(void)
#endif
}

static int __init mpc832x_declare_of_platform_devices(void)
{
struct device_node *np;

for (np = NULL; (np = of_find_compatible_node(np, "network",
"ucc_geth")) != NULL;) {
int ucc_num;
char bus_id[BUS_ID_SIZE];

ucc_num = *((uint *) get_property(np, "device-id", NULL)) - 1;
snprintf(bus_id, BUS_ID_SIZE, "ucc_geth.%u", ucc_num);
of_platform_device_create(np, bus_id, NULL);
}

return 0;
}
device_initcall(mpc832x_declare_of_platform_devices);

void __init mpc832x_sys_init_IRQ(void)
{

Expand Down

0 comments on commit c41f250

Please sign in to comment.