OSDN Git Service

soc: qcom: Return actual return code when piltz_resc_init fails
authorKyle Yan <kyan@codeaurora.org>
Fri, 6 Jan 2017 22:04:26 +0000 (14:04 -0800)
committerKyle Yan <kyan@codeaurora.org>
Mon, 16 Jan 2017 23:10:06 +0000 (15:10 -0800)
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: Kyle Yan <kyan@codeaurora.org>
drivers/soc/qcom/subsys-pil-tz.c

index 769a683..c6531de 100644 (file)
@@ -1,4 +1,4 @@
-/* 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
@@ -1043,7 +1043,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);