mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-22 17:25:35 +03:00
cdi_mgr: pass parent node instead of child
Bug 4704962 Signed-off-by: Prathamesh Shete <pshete@nvidia.com> Change-Id: Ib18f1de8e129916036913ec25bf5300d6f19def4 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3149773 Tested-by: Justin Kim (SW-TEGRA) <juskim@nvidia.com> Reviewed-by: svcacv <svcacv@nvidia.com> GVS: buildbot_gerritrpt <buildbot_gerritrpt@nvidia.com> Reviewed-by: Chinmay Mahajan <cmahajan@nvidia.com> Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
This commit is contained in:
committed by
mobile promotions
parent
f308ec7c39
commit
1a85000f63
@@ -1,5 +1,5 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
// Copyright (c) 2015-2023, NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
||||
// SPDX-FileCopyrightText: Copyright (C) 2015-2024 NVIDIA CORPORATION. All rights reserved.
|
||||
|
||||
#include <nvidia/conftest.h>
|
||||
|
||||
@@ -1454,13 +1454,13 @@ static struct cdi_mgr_platform_data *of_cdi_mgr_pdata(struct platform_device
|
||||
dev_dbg(&pdev->dev, " csiport: %d\n", pd->csi_port);
|
||||
|
||||
pd->num_pwr_gpios = cdi_mgr_of_get_grp_gpio(
|
||||
&pdev->dev, child_np, "pwdn",
|
||||
&pdev->dev, np, "pwdn",
|
||||
ARRAY_SIZE(pd->pwr_gpios), pd->pwr_gpios, pd->pwr_flags);
|
||||
if (pd->num_pwr_gpios < 0)
|
||||
return ERR_PTR(pd->num_pwr_gpios);
|
||||
|
||||
pd->num_mcdi_gpios = cdi_mgr_of_get_grp_gpio(
|
||||
&pdev->dev, child_np, "mcdi",
|
||||
&pdev->dev, np, "mcdi",
|
||||
ARRAY_SIZE(pd->mcdi_gpios), pd->mcdi_gpios, pd->mcdi_flags);
|
||||
if (pd->num_mcdi_gpios < 0)
|
||||
return ERR_PTR(pd->num_mcdi_gpios);
|
||||
|
||||
Reference in New Issue
Block a user