Received: by 10.223.185.116 with SMTP id b49csp2204221wrg; Thu, 15 Feb 2018 08:04:20 -0800 (PST) X-Google-Smtp-Source: AH8x2279UJCCUxQJSD4xSMSCYhCrc5+r7dd2jrNxpwcbJY+uujPr74T575QbW+rNSAgKTRY82NAG X-Received: by 2002:a17:902:7717:: with SMTP id n23-v6mr2125247pll.388.1518710660134; Thu, 15 Feb 2018 08:04:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518710660; cv=none; d=google.com; s=arc-20160816; b=FvAWLGYAx+pai3PWPluZ1LAiSe+KuEvuTuPQ9tzqjovuvZnBZr263/Ljx14YrLcrtW Vqrs7fSJCQkYF5xqIv4mawFmc95GGwto37J2Slo/vlWwY3rEa1iiny9WkL9mhb0qvXNk SvaiSOwwXkkrNrbQDPC9lRDQ9cplllIAlfvaH3H3M9dthHttKQ4iePY9JkLCisW+yRiJ vyG6UyMX3DoWSuXl/uy3QKN/6SjcxHrwdGP2oo6p2pCyK3e+kiKLxb4xqeBNR4U18QHj 1gnzb6KCalfGY5YejMXQFxyBVySuA7XGDqjBLgNOJDQtbB4pMtld/UEUBBN9aPKbAjRi 5i4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=6QRZ28abdKrAQVaJqKeCyuNgiLFsmgLtsK1SaeKlv9o=; b=pFnyHVkV9QTksvpx4X9rVwwUgrkaoetNMM0dIHRWX/IUAxp+lOzZvHnGna6jvuUxzn wULyfNHZNzBk1lm8UGxoUyzxGV5nTiddK+HHFzy0SrrtFoYuJzAOn72z8BXUPzO8lD9Q mWiC40mdsIqPq3uz8/ljejOOyJ6tv43pLiY5AYuYEiEmRlHvRVy5xdmP8b2LjJTYFxNY ZL6mnFXJGSG6zVEj4sseuciANzVJLFWaIwAXrXl/INU/KX24xxvXgMxCXCJ+kmr4gDgl 9id9GAqDLi5edTmCllOFr744Tvm5a+giKMqcHZB4YBwKsdNnI34IXJV4y0tCfdWhUdsE NsMg== 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 b3-v6si4538261plc.309.2018.02.15.08.04.03; Thu, 15 Feb 2018 08:04:20 -0800 (PST) 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 S1424746AbeBOPqs (ORCPT + 99 others); Thu, 15 Feb 2018 10:46:48 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:35924 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1424685AbeBOPqp (ORCPT ); Thu, 15 Feb 2018 10:46:45 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 048A1FCB; Thu, 15 Feb 2018 15:46:44 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Peter Rosin , Linus Walleij Subject: [PATCH 4.15 178/202] pinctrl: sx150x: Unregister the pinctrl on release Date: Thu, 15 Feb 2018 16:17:58 +0100 Message-Id: <20180215151722.185849457@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Peter Rosin commit 0657cb50b5a75abd92956028727dc255d690a4a6 upstream. There is no matching call to pinctrl_unregister, so switch to the managed devm_pinctrl_register to clean up properly when done. Fixes: 9e80f9064e73 ("pinctrl: Add SX150X GPIO Extender Pinctrl Driver") Signed-off-by: Peter Rosin Signed-off-by: Linus Walleij Signed-off-by: Greg Kroah-Hartman --- drivers/pinctrl/pinctrl-sx150x.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/pinctrl/pinctrl-sx150x.c +++ b/drivers/pinctrl/pinctrl-sx150x.c @@ -1225,7 +1225,7 @@ static int sx150x_probe(struct i2c_clien pctl->pinctrl_desc.npins = pctl->data->npins; pctl->pinctrl_desc.owner = THIS_MODULE; - pctl->pctldev = pinctrl_register(&pctl->pinctrl_desc, dev, pctl); + pctl->pctldev = devm_pinctrl_register(dev, &pctl->pinctrl_desc, pctl); if (IS_ERR(pctl->pctldev)) { dev_err(dev, "Failed to register pinctrl device\n"); return PTR_ERR(pctl->pctldev);