Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357612
b: refs/heads/master
c: dcd560c
h: refs/heads/master
v: v3
  • Loading branch information
Catalin Marinas authored and Samuel Ortiz committed Feb 13, 2013
1 parent a9739a0 commit f64b421
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 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: e12379320b2e1ceffc4211ad174989bc042149d9
refs/heads/master: dcd560c8587171bb22c75c41ac2a70986bbbde7f
10 changes: 6 additions & 4 deletions trunk/drivers/mfd/vexpress-sysreg.c
Original file line number Diff line number Diff line change
Expand Up @@ -338,14 +338,15 @@ void __init vexpress_sysreg_early_init(void __iomem *base)

void __init vexpress_sysreg_of_early_init(void)
{
struct device_node *node = of_find_compatible_node(NULL, NULL,
"arm,vexpress-sysreg");
struct device_node *node;

if (vexpress_sysreg_base)
return;

node = of_find_compatible_node(NULL, NULL, "arm,vexpress-sysreg");
if (node) {
vexpress_sysreg_base = of_iomap(node, 0);
vexpress_sysreg_setup(node);
} else {
pr_info("vexpress-sysreg: No Device Tree node found.");
}
}

Expand Down Expand Up @@ -515,6 +516,7 @@ static struct platform_driver vexpress_sysreg_driver = {

static int __init vexpress_sysreg_init(void)
{
vexpress_sysreg_of_early_init();
return platform_driver_register(&vexpress_sysreg_driver);
}
core_initcall(vexpress_sysreg_init);

0 comments on commit f64b421

Please sign in to comment.