|
@@ -334,9 +334,10 @@ static int meson8b_dwmac_probe(struct platform_device *pdev)
|
|
|
|
|
|
|
|
dwmac->data = (const struct meson8b_dwmac_data *)
|
|
dwmac->data = (const struct meson8b_dwmac_data *)
|
|
|
of_device_get_match_data(&pdev->dev);
|
|
of_device_get_match_data(&pdev->dev);
|
|
|
- if (!dwmac->data)
|
|
|
|
|
- return -EINVAL;
|
|
|
|
|
-
|
|
|
|
|
|
|
+ if (!dwmac->data) {
|
|
|
|
|
+ ret = -EINVAL;
|
|
|
|
|
+ goto err_remove_config_dt;
|
|
|
|
|
+ }
|
|
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
|
res = platform_get_resource(pdev, IORESOURCE_MEM, 1);
|
|
|
dwmac->regs = devm_ioremap_resource(&pdev->dev, res);
|
|
dwmac->regs = devm_ioremap_resource(&pdev->dev, res);
|
|
|
if (IS_ERR(dwmac->regs)) {
|
|
if (IS_ERR(dwmac->regs)) {
|