Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b45af190 authored by Xiaogang Cui's avatar Xiaogang Cui
Browse files

soc: qcom: dcc: update errno of dcc probe failure



Acorrding to function really_probe, the ENODEV will not throw
any error message. Changing ENODEV to EINVAL to notify error
message if probe fails.

Change-Id: Ia3187fadd4f0073e5e141595810bb8b3c7aab429
Signed-off-by: default avatarXiaogang Cui <xiaogang@codeaurora.org>
parent f5da0e24
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1203,7 +1203,7 @@ static int dcc_probe(struct platform_device *pdev)

	res = platform_get_resource_byname(pdev, IORESOURCE_MEM, "dcc-base");
	if (!res)
		return -ENODEV;
		return -EINVAL;

	drvdata->reg_size = resource_size(res);
	drvdata->base = devm_ioremap(dev, res->start, resource_size(res));
@@ -1213,7 +1213,7 @@ static int dcc_probe(struct platform_device *pdev)
	res = platform_get_resource_byname(pdev, IORESOURCE_MEM,
					   "dcc-ram-base");
	if (!res)
		return -ENODEV;
		return -EINVAL;

	drvdata->ram_size = resource_size(res);
	drvdata->ram_base = devm_ioremap(dev, res->start, resource_size(res));