Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp1132868pxj; Sat, 29 May 2021 04:20:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzc8lf/GPGhehwwfoS0VOpp5zjK5ntAFsM9Hn3pwHa69oyUj1ZA9h46s3MMPARWRXg32K/W X-Received: by 2002:a92:d90c:: with SMTP id s12mr10361340iln.96.1622287250380; Sat, 29 May 2021 04:20:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622287250; cv=none; d=google.com; s=arc-20160816; b=ddMDA2t3n4S1/OfKGJx4HAV1RjjuonY3O4v9EXhN4uRK+UmKVMh9yWI88JzINFBNsV pi9Fxvx1p7tNVIuQIEaZuDGlgve4Lmzfd8a9filwoKJnaXs3fy/Bu4JJ9hWfajGarfPi U3poTjO2Wd/IdCU+HChYgJJGagqkjBnPFd+T9ugDIzO+5MopfmhnhRuUod+rMpt7yX4e CL9DPD6OhpOlOooOHAkVtjxR+4FVM1luPWLpJMcAIgZlA1HsyKtrcSYJVCs42T0wj+eB LSUJdiu1QaM3a2Ozu80zvi6QP6G85e6OEqfYjwrxdh5lmgEaFnmKQQjDekzdeb4JxA9j NUWw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from; bh=BEV6Xjk/r3A6SaZ26bis6KjSrUh3JEb3fhFq6D6XinE=; b=SBvGgYJg2K1qTXvI+ZJl3qz5RGZWZBba9OKHUJ576oHZ/5kIGZDev0HVIE6ArZtRiy Ayo6N4PN6fhEGdtHn9q4TLYcYtLKSmRPJJahicOQdeY56RAOkAK1lQeoQ6HocLeVQA9H aFbbMm2hJ5n0DrS0lc/nJmvKDZJLAuiPl9IjTvmYnObJfsxGK1tSruXcxpbsLWkU955l ZeaU/pzzJkhP4rHS3u1MS+Uv+/p86ia7ZhiqqxfCql/gHqsnvmSJf2Q2wa9kWG+QDDoQ NuqWWxWP3w/AtQSSEnfFUcY4jprcd425N9A94DKOnaNaHXgrzdfwtgR/N+tjECr6wWfe uMJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l27si7816932jaq.51.2021.05.29.04.20.37; Sat, 29 May 2021 04:20:50 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229714AbhE2LVb (ORCPT + 99 others); Sat, 29 May 2021 07:21:31 -0400 Received: from fgw23-7.mail.saunalahti.fi ([62.142.5.84]:13943 "EHLO fgw23-7.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229738AbhE2LVU (ORCPT ); Sat, 29 May 2021 07:21:20 -0400 Received: from localhost (88-115-248-186.elisa-laajakaista.fi [88.115.248.186]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id c3b53ab9-c06f-11eb-8ccd-005056bdfda7; Sat, 29 May 2021 14:19:42 +0300 (EEST) From: Andy Shevchenko To: Pavel Machek , Andy Shevchenko , Amireddy Mallikarjuna reddy , Linus Walleij , Abanoub Sameh , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Krzysztof Kozlowski , linux-leds@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2 06/13] leds: lgm-sso: Remove explicit managed GPIO resource cleanup Date: Sat, 29 May 2021 14:19:28 +0300 Message-Id: <20210529111935.3849707-6-andy.shevchenko@gmail.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210529111935.3849707-1-andy.shevchenko@gmail.com> References: <20210529111935.3849707-1-andy.shevchenko@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The idea of managed resources is that they will be cleaned up automatically and in the proper order. Remove explicit GPIO cleanup. Signed-off-by: Andy Shevchenko --- v2: dropped one part of the change, i.e. LED unregistration (Pavel) drivers/leds/blink/leds-lgm-sso.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/leds/blink/leds-lgm-sso.c b/drivers/leds/blink/leds-lgm-sso.c index 877b44594b26..24f4057d5a05 100644 --- a/drivers/leds/blink/leds-lgm-sso.c +++ b/drivers/leds/blink/leds-lgm-sso.c @@ -613,9 +613,6 @@ static void sso_led_shutdown(struct sso_led *led) if (led->desc.hw_trig) regmap_update_bits(priv->mmap, SSO_CON3, BIT(led->desc.pin), 0); - if (led->gpiod) - devm_gpiod_put(priv->dev, led->gpiod); - led->priv = NULL; } -- 2.31.1