Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp495214pxb; Thu, 12 Nov 2020 08:45:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJxxiNjywKCm6Z/aUrBd1KJHnnpj4P7/oASSQC1HRLfuC4PYMQdrfpz0njnTrscpnUiEkntA X-Received: by 2002:a17:906:82d9:: with SMTP id a25mr134273ejy.101.1605199558701; Thu, 12 Nov 2020 08:45:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605199558; cv=none; d=google.com; s=arc-20160816; b=FPDRVmgVCECbLXORcDkba4gzFkUKxTTbU+/lt4UxDfRY141+e2yrPWzUcoI57RzwMr 06ZjZ9NgXWIpe+9Zf4S6LCWbb0ky2Sfr3xLVYohLhNCIc8MgxS6VM+Fyr/1KJ8urbpca 9SVzwYrbIiROxJPP+9xCfZMDaLYcIQ/tCJ+opM8ixgGRB7Xffbd02uqnH5awvBS/M6Qt AStzrbvcxd++kcfU0Ye1KqRG6AHCLQhQQSQdmMP3Dm8cZZWNyyyOYQQFqJfPG/Y4pjgy ws0tuO535j8Am7tGv32zVlC2F54UwBdq/Gy0Qi1xczt1Bwd8QviMXZA8j3bOFRyorKvG f2AA== 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=iicT+hG9GhQd6hxqlYwdXMcUZoMaPUezAs3HU2dMt0Q=; b=LPIRGsbP/Wind/RGbu1M0/YnYFVq0bthly5zIRClLLiiZAjZUUU9YwE5GttECDfQxr MoFesdvaWLGizWTKC5AU6mD+C9M7zTGjJo9Duq1/3n0WsCHj9VA34yX0xTRp/yEK40gU iCmsdHXYppV5hWaMIFaZ0cDTDsl5rScRjb8rcwIwfPR74DNPSjAHttJTdoncgjTH+qbt K2qEGy6dPMuZUnnTz749dvHICSd3RfyLnwb/f53pm7H1w4bYYS2WZKA9ADJtQGjcoBDN cw57dohLdwa0DXZ6SK1U8YXtgjWmMGe9kLe1IbEYUtN5f/T2VQTWM30u6IFnXcEaNwns Bp/A== 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 22si2444363ejd.709.2020.11.12.08.45.35; Thu, 12 Nov 2020 08:45:58 -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 S1729143AbgKLQoH (ORCPT + 99 others); Thu, 12 Nov 2020 11:44:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:49678 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729090AbgKLQoF (ORCPT ); Thu, 12 Nov 2020 11:44:05 -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 744C8AFD8; Thu, 12 Nov 2020 16:44:03 +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 v4 04/11] gpio: raspberrypi-exp: Release firmware handle on unbind Date: Thu, 12 Nov 2020 17:36:22 +0100 Message-Id: <20201112163630.17177-5-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201112163630.17177-1-nsaenzjulienne@suse.de> References: <20201112163630.17177-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 Acked-by: Bartosz Golaszewski --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function 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