Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1066211pxu; Mon, 23 Nov 2020 10:44:12 -0800 (PST) X-Google-Smtp-Source: ABdhPJxbG9vfwZkH9KTb8cw/8dfEODNy9Ry940O5sSrLH2SeK9MkJNzxs7G9J3DMFostjsV658MK X-Received: by 2002:a05:6402:559:: with SMTP id i25mr578931edx.128.1606157052166; Mon, 23 Nov 2020 10:44:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606157052; cv=none; d=google.com; s=arc-20160816; b=UGfFszodIRIuo5KzEfRQY35tsphVsQTbkCrFk4n34yeZAmbCMdHoBVMBCfILTCzPWF CU6q38YS+sHDEs+xcpq/cEbQMUmwqRj5T7pvfvnxPOiQdB88Q24Srkm3NIEZ5jh54f/O 8FIOQfffnk/0x2312Nm5KHrQgcTbHIDMl9hMsqPHVNNISAjudQeaLW+9vypG6u3a3YtD m/cCp6PhhmbdlcxADFFO6m9j2Nl8yNgm04/vQibK80BODKE7Y4M/SuYCTorpMqnIscqt J5B9i5QVw3afNtuD1HOBQy75gSsFXXCg/YsMGiyQSZ8X6DK52UIJ4QfSscFGKohL0G2T J93g== 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=+U5EZh/FrWeR6d359TfIqvd5fmc+1+YSKJnCydoyrFY=; b=aUFZGYrA52Jg1PRO6waRsmG1CP3e1iYB8Z1oK/8xiR8ZdwsYIQqOud3R7Yn+HYJr+o 79qUboLBwATuNqfngeRhtwy9OTE/Cw8/+qXQVzxXJmpS/yWw6JsQHJL2LjWzW6nq36hX BBII2YeGDpNoFEta38uIfYrhjKGkNkIt5rjjbDVfJRalGuBJU4Aqo//SrsQitDZ8WEoW Q7EWz0KaiBAQDjg4WTIARrJmzNvDx1P/dP6nmnT5lfk5A5aFwPR/EJc5fI3VOcHT0v3E /yHXw25/s2kgDdAx6nr7l3a74b16Ynx3VU5/dsfGf2URXk87DlB1uuQubKE0QKGBvFhG 6cnA== 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 b25si7107084edt.310.2020.11.23.10.43.48; Mon, 23 Nov 2020 10:44:12 -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 S2389152AbgKWSjR (ORCPT + 99 others); Mon, 23 Nov 2020 13:39:17 -0500 Received: from mx2.suse.de ([195.135.220.15]:59432 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387563AbgKWSir (ORCPT ); Mon, 23 Nov 2020 13:38:47 -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 6EA51AC91; Mon, 23 Nov 2020 18:38:45 +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 v5 04/11] gpio: raspberrypi-exp: Release firmware handle on unbind Date: Mon, 23 Nov 2020 19:38:25 +0100 Message-Id: <20201123183833.18750-5-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201123183833.18750-1-nsaenzjulienne@suse.de> References: <20201123183833.18750-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