|
@@ -747,8 +747,10 @@ static int altr_edac_device_probe(struct platform_device *pdev)
|
|
drvdata->edac_dev_name = ecc_name;
|
|
drvdata->edac_dev_name = ecc_name;
|
|
|
|
|
|
drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
|
|
drvdata->base = devm_ioremap(&pdev->dev, r->start, resource_size(r));
|
|
- if (!drvdata->base)
|
|
|
|
|
|
+ if (!drvdata->base) {
|
|
|
|
+ res = -ENOMEM;
|
|
goto fail1;
|
|
goto fail1;
|
|
|
|
+ }
|
|
|
|
|
|
/* Get driver specific data for this EDAC device */
|
|
/* Get driver specific data for this EDAC device */
|
|
drvdata->data = of_match_node(altr_edac_device_of_match, np)->data;
|
|
drvdata->data = of_match_node(altr_edac_device_of_match, np)->data;
|