Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp468813ybb; Thu, 28 Mar 2019 06:14:54 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUgUX6L6smgIR0xBbQRWP/IthsVAcP7yH6nno+9pEI+Km6h8TSZsqcZejyxhwY9RATwhq6 X-Received: by 2002:a17:902:e01:: with SMTP id 1mr43746255plw.128.1553778894875; Thu, 28 Mar 2019 06:14:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553778894; cv=none; d=google.com; s=arc-20160816; b=NuN+zmuxe/xcLJhL+2OTzhkY735PpLOWgOVdwhKZ/2ilsDEJhTq0S0Sf5YiBGXTvB8 d4sT2Y4/DQ1dePh+S3RAh+1/3GGLRDTHFcn1RYtKf22xRh5xUAvEISar0kNKZyS0A5h8 PKA0xZl9L6SnHFXhUJMzRvU2GkkAY/3JSdp0RVwp7YC9gayg/rvgLVwsomybljzwNpHC MLdiejk06F93D2OfZEJSmatKQ44rnwRsH1uv44eAsVbeXrGHDY8lV+8/AKoYZs75RTWE qC5HdfTNr7bneAglvnhljBjRKIREdoNdrOHAKUpi50kZt8Ipysx83Bau113wE1Ch+s6i JAmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=IDS0x+PTiJpjMwXfzB96PpcweDu+XmabD9NqBqIKPHc=; b=e99e/4Lp+lCg6FwOsg/Kd3H6hjMv++Mp6Be3V3u5kEKMmHnifl8WRlvHx6uof7ZPkL JfmL5ORu5BTKp1YBoptwA2gcxjJpSjMxAqhKsymCitD9l/rKDEYr5XZUhKGqBFFv3koN bpDgenaTAf/llgObgA8XRjxDA4hJrTKxDDV/gf14+zELHkAWGpIQGtjFIkADM3n6KDVv XdXAir9vYc2qroKFTowvTrg2ZkTxPeF8rLfScr8srkBpH3iGuac3PeA6y7pbVNUMOFy4 PyeWKBBkOPPbsIXHGbvrz+UIn2F2XPkFuOyZ1xAAo5fh6QXOj9xpyxFITvUQhptx8lJb debQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h13si12997781pgh.57.2019.03.28.06.14.38; Thu, 28 Mar 2019 06:14:54 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727248AbfC1NN5 (ORCPT + 99 others); Thu, 28 Mar 2019 09:13:57 -0400 Received: from baptiste.telenet-ops.be ([195.130.132.51]:57770 "EHLO baptiste.telenet-ops.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726243AbfC1NNy (ORCPT ); Thu, 28 Mar 2019 09:13:54 -0400 Received: from ramsan ([84.194.111.163]) by baptiste.telenet-ops.be with bizsmtp id tRDr1z0063XaVaC01RDr99; Thu, 28 Mar 2019 14:13:51 +0100 Received: from rox.of.borg ([192.168.97.57]) by ramsan with esmtp (Exim 4.90_1) (envelope-from ) id 1h9Uqt-0005Fo-2a; Thu, 28 Mar 2019 14:13:51 +0100 Received: from geert by rox.of.borg with local (Exim 4.90_1) (envelope-from ) id 1h9Uqt-0004uk-1T; Thu, 28 Mar 2019 14:13:51 +0100 From: Geert Uytterhoeven To: Linus Walleij , Bartosz Golaszewski Cc: Benoit Parrot , Laxman Dewangan , Tomeu Vizoso , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven Subject: [PATCH 3/3] gpio: Remove obsolete comment about gpiochip_free_hogs() usage Date: Thu, 28 Mar 2019 14:13:49 +0100 Message-Id: <20190328131349.18838-4-geert+renesas@glider.be> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190328131349.18838-1-geert+renesas@glider.be> References: <20190328131349.18838-1-geert+renesas@glider.be> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org gpiochip_free_hogs() was always called from gpiochip_remove(), not of_gpiochip_remove(). It is now also called from the failure patch in gpiochip_add_data_with_key(). Fixes: f625d4601759f1cf ("gpio: add GPIO hogging mechanism") Signed-off-by: Geert Uytterhoeven --- drivers/gpio/gpiolib.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c index ed4da07effe0ac40..ec326bd84b1f1c50 100644 --- a/drivers/gpio/gpiolib.c +++ b/drivers/gpio/gpiolib.c @@ -4449,8 +4449,6 @@ int gpiod_hog(struct gpio_desc *desc, const char *name, /** * gpiochip_free_hogs - Scan gpio-controller chip and release GPIO hog * @chip: gpio chip to act on - * - * This is only used by of_gpiochip_remove to free hogged gpios */ static void gpiochip_free_hogs(struct gpio_chip *chip) { -- 2.17.1