|
@@ -371,8 +371,8 @@ static int __init hidma_mgmt_of_populate_channels(struct device_node *np)
|
|
pdevinfo.size_data = 0;
|
|
pdevinfo.size_data = 0;
|
|
pdevinfo.dma_mask = DMA_BIT_MASK(64);
|
|
pdevinfo.dma_mask = DMA_BIT_MASK(64);
|
|
new_pdev = platform_device_register_full(&pdevinfo);
|
|
new_pdev = platform_device_register_full(&pdevinfo);
|
|
- if (!new_pdev) {
|
|
|
|
- ret = -ENODEV;
|
|
|
|
|
|
+ if (IS_ERR(new_pdev)) {
|
|
|
|
+ ret = PTR_ERR(new_pdev);
|
|
goto out;
|
|
goto out;
|
|
}
|
|
}
|
|
of_dma_configure(&new_pdev->dev, child);
|
|
of_dma_configure(&new_pdev->dev, child);
|