Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751495Ab2F2E4n (ORCPT ); Fri, 29 Jun 2012 00:56:43 -0400 Received: from hqemgate03.nvidia.com ([216.228.121.140]:7757 "EHLO hqemgate03.nvidia.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751162Ab2F2E4k (ORCPT ); Fri, 29 Jun 2012 00:56:40 -0400 X-PGP-Universal: processed; by hqnvupgp07.nvidia.com on Thu, 28 Jun 2012 21:53:21 -0700 From: Alexandre Courbot To: Rob Herring , Grant Likely , Linus Walleij CC: , , Alexandre Courbot Subject: [PATCH 2/2] gpio: propagate of_parse_phandle_with_args errors Date: Fri, 29 Jun 2012 13:57:59 +0900 Message-ID: <1340945879-11712-3-git-send-email-acourbot@nvidia.com> X-Mailer: git-send-email 1.7.11.1 In-Reply-To: <1340945879-11712-1-git-send-email-acourbot@nvidia.com> References: <1340945879-11712-1-git-send-email-acourbot@nvidia.com> X-NVConfidentiality: public MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 987 Lines: 29 Make of_get_named_gpio_flags propagate any error it receives from of_parse_phandle_with_args instead of inconditionally returning -EINVAL. Signed-off-by: Alexandre Courbot --- drivers/gpio/gpiolib-of.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c index 8389d4a..a71aeca 100644 --- a/drivers/gpio/gpiolib-of.c +++ b/drivers/gpio/gpiolib-of.c @@ -73,7 +73,7 @@ int of_get_named_gpio_flags(struct device_node *np, const char *propname, &gg_data.gpiospec); if (ret) { pr_debug("%s: can't parse gpios property\n", __func__); - return -EINVAL; + return ret; } gpiochip_find(&gg_data, of_gpiochip_find_and_xlate); -- 1.7.11.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/