[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220912133309.18506-1-pshete@nvidia.com>
Date: Mon, 12 Sep 2022 19:03:09 +0530
From: Prathamesh Shete <pshete@...dia.com>
To: <linus.walleij@...aro.org>, <bgolaszewski@...libre.com>,
<linux-gpio@...r.kernel.org>, <linux-tegra@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <jonathanh@...dia.com>,
<thierry.reding@...il.com>
CC: <smangipudi@...dia.com>, <pshete@...dia.com>,
Manish Bhardwaj <mbhardwaj@...dia.com>
Subject: [PATCH] gpio: tegra186: Check PMC driver status before any request
This patch fixes the issue where even if pmc driver
status is disabled still we are invoking pmc driver
to process some request
Signed-off-by: Manish Bhardwaj <mbhardwaj@...dia.com>
Signed-off-by: Prathamesh Shete <pshete@...dia.com>
---
drivers/gpio/gpio-tegra186.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpio/gpio-tegra186.c b/drivers/gpio/gpio-tegra186.c
index 54d9fa7da9c1..efd508ba07a6 100644
--- a/drivers/gpio/gpio-tegra186.c
+++ b/drivers/gpio/gpio-tegra186.c
@@ -895,7 +895,7 @@ static int tegra186_gpio_probe(struct platform_device *pdev)
tegra186_gpio_init_route_mapping(gpio);
np = of_find_matching_node(NULL, tegra186_pmc_of_match);
- if (np) {
+ if (of_device_is_available(np)) {
irq->parent_domain = irq_find_host(np);
of_node_put(np);
--
2.17.1
Powered by blists - more mailing lists