|
@@ -1043,6 +1043,7 @@ static int temac_of_probe(struct platform_device *op)
|
|
lp->regs = of_iomap(op->dev.of_node, 0);
|
|
lp->regs = of_iomap(op->dev.of_node, 0);
|
|
if (!lp->regs) {
|
|
if (!lp->regs) {
|
|
dev_err(&op->dev, "could not map temac regs.\n");
|
|
dev_err(&op->dev, "could not map temac regs.\n");
|
|
|
|
+ rc = -ENOMEM;
|
|
goto nodev;
|
|
goto nodev;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1062,6 +1063,7 @@ static int temac_of_probe(struct platform_device *op)
|
|
np = of_parse_phandle(op->dev.of_node, "llink-connected", 0);
|
|
np = of_parse_phandle(op->dev.of_node, "llink-connected", 0);
|
|
if (!np) {
|
|
if (!np) {
|
|
dev_err(&op->dev, "could not find DMA node\n");
|
|
dev_err(&op->dev, "could not find DMA node\n");
|
|
|
|
+ rc = -ENODEV;
|
|
goto err_iounmap;
|
|
goto err_iounmap;
|
|
}
|
|
}
|
|
|
|
|