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>
}
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;
root = pdev->dev.platform_data;
- bpmp_tty_create_debugfs(pdev, root);
+ if (root)
+ bpmp_tty_create_debugfs(pdev, root);
return 0;