|
@@ -613,6 +613,7 @@ static int xgbe_probe(struct platform_device *pdev)
|
|
attr = device_get_dma_attr(dev);
|
|
attr = device_get_dma_attr(dev);
|
|
if (attr == DEV_DMA_NOT_SUPPORTED) {
|
|
if (attr == DEV_DMA_NOT_SUPPORTED) {
|
|
dev_err(dev, "DMA is not supported");
|
|
dev_err(dev, "DMA is not supported");
|
|
|
|
+ ret = -ENODEV;
|
|
goto err_io;
|
|
goto err_io;
|
|
}
|
|
}
|
|
pdata->coherent = (attr == DEV_DMA_COHERENT);
|
|
pdata->coherent = (attr == DEV_DMA_COHERENT);
|