Commit e23593ee authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Greg Kroah-Hartman
Browse files

usb: dwc3: xilinx: simplify with dev_err_probe

parent 819c0c31
Loading
Loading
Loading
Loading
+2 −5
Original line number Diff line number Diff line
@@ -285,11 +285,8 @@ static int dwc3_xlnx_probe(struct platform_device *pdev)
		return -ENOMEM;

	regs = devm_platform_ioremap_resource(pdev, 0);
	if (IS_ERR(regs)) {
		ret = PTR_ERR(regs);
		dev_err_probe(dev, ret, "failed to map registers\n");
		return ret;
	}
	if (IS_ERR(regs))
		return dev_err_probe(dev, PTR_ERR(regs), "failed to map registers\n");

	match = of_match_node(dwc3_xlnx_of_match, pdev->dev.of_node);