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

Commit 3d6600c5 authored by Kyle Yan's avatar Kyle Yan
Browse files

soc: qcom: Return actual return code when piltz_resc_init fails



Propagate error code upwards when piltz_resc_init fails. Previous return
prevented probe from retrying when piltz_resc_init returns -EPROBE_DEFER.

Change-Id: I217f13eb4bff321ae1b7583f5d2614b6c9589987
Signed-off-by: default avatarKyle Yan <kyan@codeaurora.org>
parent 0b4fef02
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved.
/* Copyright (c) 2014-2017, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -1039,7 +1039,7 @@ static int pil_tz_driver_probe(struct platform_device *pdev)
	if (!d->subsys_desc.no_auth) {
		rc = piltz_resc_init(pdev, d);
		if (rc)
			return -ENOENT;
			return rc;

		rc = of_property_read_u32(pdev->dev.of_node, "qcom,pas-id",
								&d->pas_id);