Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp494089pxb; Thu, 12 Nov 2020 08:44:21 -0800 (PST) X-Google-Smtp-Source: ABdhPJyghU7wIbeLwOa3k9fSwFSz4rJ84hoFGFPkqNA/ggUPBPowv2yyO+P1BXwoDR/kRhemdW5c X-Received: by 2002:a17:906:8398:: with SMTP id p24mr100559ejx.401.1605199461034; Thu, 12 Nov 2020 08:44:21 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605199461; cv=none; d=google.com; s=arc-20160816; b=GQgrbr0rYfhdCiSmpUtavA3dga1jEfTagL43ic/AF5S/Eoir/T7JWhHraj52wiKlRM +oVXbCxW/rjbO2BRUTj2aviEkzbKyIjBbTdT2ku5GaYFYrLrd03eJCHkEj0hn0IH/g8d R4j7nYvi981tR+dtm94zISQZPBXkb+Si6bG7HiBpXRhTJZxeaFLdEk6FzJKAErvPFVGz mPJEW4+fHPD97q5E9VzaeMWOpXKHPYtDAzI8qQKroXpaEpRHasD+SXHGQoKoKrFCbCx+ /hgQK5ZCXrzICwD/YwuHqzK0JYK3ibAABOMvgVCyxWSWlk3q8dqbgcCDYYOyvda4wZoE uTCQ== 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=NZNyiimIOC61tqmVmqaA7SWK4SYWCSW8Djt79+32T0Q=; b=PK+X9gJhNrTv9p7g6zNvYQBzLN5O9C/K1uhC7vOlJ3g/6iCG7twxvi8r6GmQDeoUaR p6YY5dtAYVvW1u2YueSNgG0wNxxJIr/ijabZC/KPSRHeI67PvPBjwUxtm3R9KcHmcc/E h25iVaFL6hQK18cJUjqTXEK1mEKHiCn5S8L3BPq2dWmTWdHLRAGQOq/uYU9pufgdsiot r9e1jxWhVRDQiGTKQEPMKPyzx36em/MM1xP9yJyIaKOo7+dKo3gW+w4/rg6NMBzvWsk0 HUU0sqO/EAqS4U+69HshqUWE7omcp1j2SxydFTFMph4KyNVM6LvctmkUnepBHh/Uwi0B HOBg== 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 m11si4098697edl.523.2020.11.12.08.43.57; Thu, 12 Nov 2020 08:44:21 -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 S1728985AbgKLQme (ORCPT + 99 others); Thu, 12 Nov 2020 11:42:34 -0500 Received: from mx2.suse.de ([195.135.220.15]:46154 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728426AbgKLQma (ORCPT ); Thu, 12 Nov 2020 11:42:30 -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 5EB15AB95; Thu, 12 Nov 2020 16:42:28 +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 v4 03/11] clk: bcm: rpi: Release firmware handle on unbind Date: Thu, 12 Nov 2020 17:36:21 +0100 Message-Id: <20201112163630.17177-4-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 --- 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