Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 288272
b: refs/heads/master
c: 851c52b
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Ferre committed Feb 29, 2012
1 parent c5d6317 commit 0bd906c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 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: b9eaa81af2fdc0b710c7afb7d3e425ea27133b72
refs/heads/master: 851c52b23c5c27047f1438684750e28c44d73191
10 changes: 9 additions & 1 deletion trunk/arch/arm/mach-at91/at91sam9g45_devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,15 @@ static struct platform_device at_hdmac_device = {

void __init at91_add_device_hdmac(void)
{
platform_device_register(&at_hdmac_device);
#if defined(CONFIG_OF)
struct device_node *of_node =
of_find_node_by_name(NULL, "dma-controller");

if (of_node)
of_node_put(of_node);
else
#endif
platform_device_register(&at_hdmac_device);
}
#else
void __init at91_add_device_hdmac(void) {}
Expand Down

0 comments on commit 0bd906c

Please sign in to comment.