Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319654
b: refs/heads/master
c: fcf9b4d
h: refs/heads/master
v: v3
  • Loading branch information
Ganesan Ramalingam authored and Ralf Baechle committed Jul 24, 2012
1 parent d939f32 commit 17764f1
Show file tree
Hide file tree
Showing 2 changed files with 17 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: 57d7cdb630716c3f9cf7beadd05059c65a9acd25
refs/heads/master: fcf9b4de3374d0df79eb8e06c046006d3855e06e
16 changes: 16 additions & 0 deletions trunk/arch/mips/netlogic/xlp/setup.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
#include <asm/bootinfo.h>

#include <linux/of_fdt.h>
#include <linux/of_platform.h>
#include <linux/of_device.h>

#include <asm/netlogic/haldefs.h>
#include <asm/netlogic/common.h>
Expand Down Expand Up @@ -109,3 +111,17 @@ void __init prom_init(void)
register_smp_ops(&nlm_smp_ops);
#endif
}

static struct of_device_id __initdata xlp_ids[] = {
{ .compatible = "simple-bus", },
{},
};

int __init xlp8xx_ds_publish_devices(void)
{
if (!of_have_populated_dt())
return 0;
return of_platform_bus_probe(NULL, xlp_ids, NULL);
}

device_initcall(xlp8xx_ds_publish_devices);

0 comments on commit 17764f1

Please sign in to comment.