Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296014
b: refs/heads/master
c: 2756bf5
h: refs/heads/master
v: v3
  • Loading branch information
Nicolas Ferre committed Feb 3, 2012
1 parent 4760c5a commit 71c4feb
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: bdad0b9a1c7222a771d25e2a20e81f5563968002
refs/heads/master: 2756bf5c03bd6fec9462c0742dddb771838bf080
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 71c4feb

Please sign in to comment.