]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/commitdiff
firmware: tegra: do not fail probe if debugfs is missing
authorSivaram Nair <sivaramn@nvidia.com>
Wed, 24 May 2017 17:29:14 +0000 (10:29 -0700)
committermobile promotions <svcmobile_promotions@nvidia.com>
Fri, 26 May 2017 13:29:32 +0000 (06:29 -0700)
There is no reason to fail probe (and thereby deny all bpmp services to
kernel) when debugfs is absent (or its creation failed).

Bug 1929129

Change-Id: I28d6632945afdac00815caf71e51fff90e31c6bc
Signed-off-by: Sivaram Nair <sivaramn@nvidia.com>
Reviewed-on: http://git-master/r/1489030
GVS: Gerrit_Virtual_Submit
Reviewed-by: Arun Kannan <akannan@nvidia.com>
Tested-by: Arun Kannan <akannan@nvidia.com>
Reviewed-by: Timo Alho <talho@nvidia.com>
drivers/firmware/tegra/bpmp.c
drivers/firmware/tegra/bpmp_tty.c

index 15375e60c2cd56c32455db3624121ec62d066ee2..be113f94a097c190140231e2dd4e7ff7c06b6c78 100644 (file)
@@ -307,12 +307,8 @@ static int bpmp_probe(struct platform_device *pdev)
        }
 
        root = bpmp_init_debug(pdev);
-       if (!root) {
-               r = -ENOMEM;
-               goto err_out;
-       }
 
-       if (cfg->cpuidle) {
+       if (root && cfg->cpuidle) {
                r = bpmp_init_cpuidle_debug(root);
                if (r)
                        goto err_out;
index 4ca350c64c44cf2d6678f2bba309a11eeac7890a..76d39e9c3533eb03a95f3f1908ae518d5dc7dbdd 100644 (file)
@@ -372,7 +372,8 @@ static int bpmp_tty_probe(struct platform_device *pdev)
 
        root = pdev->dev.platform_data;
 
-       bpmp_tty_create_debugfs(pdev, root);
+       if (root)
+               bpmp_tty_create_debugfs(pdev, root);
 
        return 0;