From 1a85000f63d06c657de87daddd036caaeedb0b5e Mon Sep 17 00:00:00 2001 From: Prathamesh Shete Date: Mon, 3 Jun 2024 09:03:40 +0000 Subject: [PATCH] cdi_mgr: pass parent node instead of child Bug 4704962 Signed-off-by: Prathamesh Shete Change-Id: Ib18f1de8e129916036913ec25bf5300d6f19def4 Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/3149773 Tested-by: Justin Kim (SW-TEGRA) Reviewed-by: svcacv GVS: buildbot_gerritrpt Reviewed-by: Chinmay Mahajan Reviewed-by: Shiva Dubey --- drivers/media/platform/tegra/cdi/cdi_mgr.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/media/platform/tegra/cdi/cdi_mgr.c b/drivers/media/platform/tegra/cdi/cdi_mgr.c index 78069c20..455ebdb8 100644 --- a/drivers/media/platform/tegra/cdi/cdi_mgr.c +++ b/drivers/media/platform/tegra/cdi/cdi_mgr.c @@ -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 @@ -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);