|
@@ -961,19 +961,14 @@ int __init dm644x_init_video(struct vpfe_config *vpfe_cfg,
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-static int __init dm644x_init_devices(void)
|
|
|
+void __init dm644x_init_devices(void)
|
|
|
{
|
|
|
struct platform_device *edma_pdev;
|
|
|
- int ret = 0;
|
|
|
-
|
|
|
- if (!cpu_is_davinci_dm644x())
|
|
|
- return 0;
|
|
|
+ int ret;
|
|
|
|
|
|
edma_pdev = platform_device_register_full(&dm644x_edma_device);
|
|
|
- if (IS_ERR(edma_pdev)) {
|
|
|
+ if (IS_ERR(edma_pdev))
|
|
|
pr_warn("%s: Failed to register eDMA\n", __func__);
|
|
|
- return PTR_ERR(edma_pdev);
|
|
|
- }
|
|
|
|
|
|
platform_device_register(&dm644x_mdio_device);
|
|
|
platform_device_register(&dm644x_emac_device);
|
|
@@ -982,6 +977,4 @@ static int __init dm644x_init_devices(void)
|
|
|
if (ret)
|
|
|
pr_warn("%s: watchdog init failed: %d\n", __func__, ret);
|
|
|
|
|
|
- return ret;
|
|
|
}
|
|
|
-postcore_initcall(dm644x_init_devices);
|