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

Commit d782e8e5 authored by Lina Iyer's avatar Lina Iyer Committed by Gerrit - the friendly Code Review server
Browse files

drivers: qcom: cmd-db: report friendly error messages



Fail elegantly by reporting the reason for failure at probe.

Change-Id: I413055fb3db36646d5f602f31a0abfe85870723a
Signed-off-by: default avatarLina Iyer <ilina@codeaurora.org>
parent 49deca8c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -352,6 +352,7 @@ static int cmd_db_dev_probe(struct platform_device *pdev)
	dict = of_iomap(pdev->dev.of_node, 0);
	if (!dict) {
		cmd_db_status = -ENOMEM;
		pr_err("Command DB dictionary addr not found.\n");
		goto failed;
	}

@@ -372,6 +373,7 @@ static int cmd_db_dev_probe(struct platform_device *pdev)

	if (!cmd_db_header) {
		cmd_db_status = -ENOMEM;
		pr_err("Command DB header not found.\n");
		goto failed;
	}