Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1200758pxb; Wed, 4 Nov 2020 02:42:19 -0800 (PST) X-Google-Smtp-Source: ABdhPJxHYbvlv/Zn7kPMiveszJUCbINF8vfHkeCGE6T4ZI+u/URmyyI9RJgv7zNjhdvnKD786Hxf X-Received: by 2002:a17:906:ae95:: with SMTP id md21mr22481192ejb.425.1604486538869; Wed, 04 Nov 2020 02:42:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604486538; cv=none; d=google.com; s=arc-20160816; b=r0tTbe197Pu584zlxyk7bjWAuUS6UKPiIqoIX0RCPbl6RaNts5MUnge/Ezeb7RSD9g 2kMjRahbcucAdVx0pdNJqRPcMFQG4Nzjh5Dfan4cZK+JyT5BroKDZ9Pc6JI+ihiysyIH PHsliOwN8UE/BWeyeh0XP6MojcXaGwkJD/YRjNxpPavL2g1xjURt5AWPy0PD0j64jjuG B6pWdXlXqihUvfukE8/B0CLQfnAtcE7z70jxHhXSvSiI5dwQ1WTp+SXkfZVb69XnMPS2 PX5wiMuf8GrU7bTlJhLrFrah3iuntUpUXENzAH+CZsbZk24dhi3fk0Q1ytucPAcqZ98F bdFQ== 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=DlR2KrkymnxVroUi7bQBNmzwy9sBdJ5KZeuyVaILnjM=; b=EbOxSv90KQjr9Y7iHMVf7s3Y0DfojmKNZ+We2jaakpHIZETNowUTAx2rDuLNd6BJdw BGIy/7nwh5Bepg8rj1eJdzhBincwsiSiBP4DdgWEpwYzFnfYp+thCXmsTv2dzaig+Zoz Y5kBJwR+Mz2wS0MQTpy5r4+THHnD6lGfrJQbYGcEufIMAT8tQu1TCgp62hVzLrAInkz9 If9ix5+UpQBRWQYWc9VoK94LT8vVx+P4nr5ogAILLWvJ/SVfhRQP3E2Wh4ZmoM61FqbG nonSYcN+vsv0SNoDRlMTA89T7vKD1EDRAXwlDbt6FaOpcCctEa3nDxRKv4LG7EnrnkCP FMhQ== 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 p14si1210904eju.470.2020.11.04.02.41.56; Wed, 04 Nov 2020 02:42:18 -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 S1729819AbgKDKkC (ORCPT + 99 others); Wed, 4 Nov 2020 05:40:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:58696 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729603AbgKDKj4 (ORCPT ); Wed, 4 Nov 2020 05:39:56 -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 E1C15ADC2; Wed, 4 Nov 2020 10:39:54 +0000 (UTC) From: Nicolas Saenz Julienne To: u.kleine-koenig@pengutronix.de, linux-kernel@vger.kernel.org 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, linus.walleij@linaro.org, linux-clk@vger.kernel.org, sboyd@kernel.org, linux-rpi-kernel@lists.infradead.org, bgolaszewski@baylibre.com, andy.shevchenko@gmail.com, Nicolas Saenz Julienne Subject: [PATCH v3 06/11] staging: vchiq: Release firmware handle on unbind Date: Wed, 4 Nov 2020 11:39:32 +0100 Message-Id: <20201104103938.1286-7-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201104103938.1286-1-nsaenzjulienne@suse.de> References: <20201104103938.1286-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 --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c index 01125d9f991b..3c25e237e334 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2723,7 +2723,7 @@ static int vchiq_probe(struct platform_device *pdev) return -ENOENT; } - drvdata->fw = rpi_firmware_get(fw_node); + drvdata->fw = devm_rpi_firmware_get(&pdev->dev, fw_node); of_node_put(fw_node); if (!drvdata->fw) return -EPROBE_DEFER; -- 2.29.1