|
@@ -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) {}
|