Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1308649pxu; Sat, 12 Dec 2020 08:31:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJya4vjko3iS/yMpvjP8MzppG3YjmEeY16AlIkJugKjmu3iw+qEBRkfapSESds4tQ5LDnltU X-Received: by 2002:a17:906:b2d1:: with SMTP id cf17mr16131337ejb.281.1607790713216; Sat, 12 Dec 2020 08:31:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607790713; cv=none; d=google.com; s=arc-20160816; b=imUuzZeQGsmM4mLCaC8n45aXakniseP1KFwjXSwYrNxrrEOHfvH2f19L9pEqE3L0GJ Rvd183wAbunpyVM86S4UZPfAnpmH7x0W4iFAVMESZxI6ZinY5rWTNfB+x2IySWqvs1pE /F261vFu5fkQrFB91Fb13Z86oIut+XnAoEvtffWAgRdXBoyywXN5H6VNwfhMfIuk9QJi exc9PRK9FgUuRPCbf+eYDP07Jm+a30sJSXxOHr5V6nwxbseaKdo11ieLKDfvzQHuhccP jjpIJUgsOFBhzv8cAVF2RIdv4duUioeQOsqT4vdFz1rIW6s8mER9HopZXASlUHvO6Lb6 8Sow== 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:cc:to:from; bh=zS14WgCA7PB4srrg1eJiBWrp+vsSpo1GUHZFmDirzS4=; b=ZQ5jTUBIJhJBISP2cNG9qIjC3elT6nbJXPooKxXtjEWqd45DoAJ6jGkkOHWuu+31zb OvQ60jNgRgGQpf4UDJsSqXDpO6Ia+AEH7K5BRO2OVtnkrpMRuplcUh++gmEldA9EXSld /zuGvUWoyjIiw+15jIIx8lFAxSNl+kSU4mlGMJLoIet58uT+jNKWKmcq3spz6q8nsdpu E9Yf9HwV752eCpgIW8SHSXEud9MpMHh+no6cQZITsiWaWucd92z1VLZpLOjEJJb6nZHE k0DEyekDBPpbgpJAcL83qZkukumef0vIugVnhkCRH+812CortEy3xhN0ujcZyIvucjTr QNyQ== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n22si6957058edb.427.2020.12.12.08.31.29; Sat, 12 Dec 2020 08:31:53 -0800 (PST) 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390726AbgLKQtw (ORCPT + 99 others); Fri, 11 Dec 2020 11:49:52 -0500 Received: from mx2.suse.de ([195.135.220.15]:34372 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389796AbgLKQsy (ORCPT ); Fri, 11 Dec 2020 11:48:54 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id CAED1B13D; Fri, 11 Dec 2020 16:48:12 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org, Linus Walleij , Bartosz Golaszewski Cc: f.fainelli@gmail.com, linux-pwm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, wahrenst@gmx.net, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, p.zabel@pengutronix.de, linux-gpio@vger.kernel.org, linux-clk@vger.kernel.org, sboyd@kernel.org, linux-rpi-kernel@lists.infradead.org, andy.shevchenko@gmail.com, Nicolas Saenz Julienne Subject: [PATCH v6 04/11] gpio: raspberrypi-exp: Release firmware handle on unbind Date: Fri, 11 Dec 2020 17:47:53 +0100 Message-Id: <20201211164801.7838-5-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201211164801.7838-1-nsaenzjulienne@suse.de> References: <20201211164801.7838-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use devm_rpi_firmware_get() so as to make sure we release RPi's firmware interface when unbinding the device. Signed-off-by: Nicolas Saenz Julienne Reviewed-by: Florian Fainelli Acked-by: Bartosz Golaszewski --- drivers/gpio/gpio-raspberrypi-exp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/gpio-raspberrypi-exp.c b/drivers/gpio/gpio-raspberrypi-exp.c index bb100e0124e6..64a552ecc2ad 100644 --- a/drivers/gpio/gpio-raspberrypi-exp.c +++ b/drivers/gpio/gpio-raspberrypi-exp.c @@ -208,7 +208,7 @@ static int rpi_exp_gpio_probe(struct platform_device *pdev) return -ENOENT; } - fw = rpi_firmware_get(fw_node); + fw = devm_rpi_firmware_get(&pdev->dev, fw_node); of_node_put(fw_node); if (!fw) return -EPROBE_DEFER; -- 2.29.2