Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1065688pxu; Mon, 23 Nov 2020 10:43:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJw+aUXwQWjie2tiDwuAeXrH+RixBdL2AaZucbBT2TiqIzX8gIqoGpLY1GvQgT0rzndDnzoq X-Received: by 2002:a50:858a:: with SMTP id a10mr539811edh.190.1606156991334; Mon, 23 Nov 2020 10:43:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606156991; cv=none; d=google.com; s=arc-20160816; b=1LnE9qxnYB5dNqOWeDcTNoec+WjlsEcA16DDW0Ksoe5UUG32l9D/qaC66UDHzB8Odf EHk+GR9RTSTN5IRm481yNt1ZlXsqcwl9oSl8xtmDOX94YzI+ZpO2Gf2EzhopBbS5s8Y3 Qn8HSS6z8VGHQaCC6S5/LSM5IFyoRMLyl99bcWVjxFSTqD9Ko5g2rK2ipCdVOV5h0gHL dW15svUmG8POkU5GIkGALvDvh0JJ7mAH1G25heKeTRu0cEU4joaTPDfuav3s/u/p0nda yZEKTV2HVl5ZbNE1b0z3Pd+dSr8DklKMguvEo67miK36LHauqaXkiJkgSSCHG3DTv8un AR6w== 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=kGNM7AyT3mf59wDO3Y07mxTIPdpEFo02EEBerdNaQus=; b=sVq5sNWqCZSEQ2tGbtRj/d5W+XqqA+42ny6vvwxAMM/h2ZaLnkGXoA1C945UiNlo3w Mc/hpTiYIqo9dVr9c9r+y+2hTH1z5cG/1nKI1KYgBLcu2xGsKRMWahnESwnuJ3iwICo+ zzRKX/cwn5FinKZlMvUE+Upbw6DIApUZI7fT3f45oTEdMkl9PwUyxmVnszsEX+fFSPXw TjhZBlTfzPhsiJh+BAIw8Vz/A42/0e5BiptM7I+aCHpoFRqQOLgKVcP0qqQ1qXeBO+Rm glvtIul9+6KrqzMjGUzFu87YlY2POwgzYmrCrxmz/lF038H7Ynlvyl7BRiPk2MFMFmbG R+aA== 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 o25si7909529edz.20.2020.11.23.10.42.48; Mon, 23 Nov 2020 10:43:11 -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 S2387706AbgKWSit (ORCPT + 99 others); Mon, 23 Nov 2020 13:38:49 -0500 Received: from mx2.suse.de ([195.135.220.15]:59388 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387513AbgKWSiq (ORCPT ); Mon, 23 Nov 2020 13:38:46 -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 4AAA8ACA3; Mon, 23 Nov 2020 18:38:44 +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 , Michael Turquette Subject: [PATCH v5 03/11] clk: bcm: rpi: Release firmware handle on unbind Date: Mon, 23 Nov 2020 19:38:24 +0100 Message-Id: <20201123183833.18750-4-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 --- Changes since v2: - Use devm_rpi_firmware_get(), instead of remove function drivers/clk/bcm/clk-raspberrypi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/clk/bcm/clk-raspberrypi.c b/drivers/clk/bcm/clk-raspberrypi.c index f89b9cfc4309..dd3b71eafabf 100644 --- a/drivers/clk/bcm/clk-raspberrypi.c +++ b/drivers/clk/bcm/clk-raspberrypi.c @@ -314,7 +314,7 @@ static int raspberrypi_clk_probe(struct platform_device *pdev) return -ENOENT; } - firmware = rpi_firmware_get(firmware_node); + firmware = devm_rpi_firmware_get(&pdev->dev, firmware_node); of_node_put(firmware_node); if (!firmware) return -EPROBE_DEFER; -- 2.29.2