Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp1200798pxb; Wed, 4 Nov 2020 02:42:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzxyWch3uxzTsbQCXchaWyo30q085NC7nusFb9Z+wMMdr8Mqtb3eLz8yYvIyon1WghIjSkp X-Received: by 2002:a17:906:9459:: with SMTP id z25mr5981295ejx.88.1604486544144; Wed, 04 Nov 2020 02:42:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604486544; cv=none; d=google.com; s=arc-20160816; b=L5cCNhVyN8+imxmDXEO3v5j0WYjaEDeupDT+5k8swH/N64LT+zODUyq3pfLryfV5xK Dn3DCp0//fYcZaph2KW+OIWLpgweKi5aDj3+TQ1j41ZxxXD2GXPJGvZHaxAQJId0/O5V 3qUFmL816/bARHHUZqssy33kMkG0gko7os5z23eGxc05ytbKVRd5O8qB2dAdktYirPVQ r4ryRN7E7IdwHg12fuNz6mdn5KXni0AC/EN4kcrqtWPvr5STJ6O72pvNOjERz4B6sGkd p1gLZCF7ZCFmrovaonkX9yFgFaJHCWLfn+HPnrNkziiG1bbCu5SJ+61zTr+g/ddkdO0O eC/w== 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=t1Upb/Pqb/vXf2t30rgycWccGttGhCyGqzFqwUj/w0Y=; b=ip5VJNK46Mk1q77L1K8bVLign9mXhYZqkj3ylqMCyGQlM/40fCI6UEQTV3crVUGSVo CLaRKXznaZ08oo3I1TDVZF1TxA76YC1wqlONpkdn0gxxOfclebJldH+InVol+loRCYn6 cnkA6+oJpoYVRBQlD59/3F5GDg9gW3+BTdzU88EAE+z8+/WaZjl0S5Pwf9BcYtt8k966 nFh8hjMGcIhho6ydT4nf2Z5MG1EV1P0Kxe7Z9dc+11HiqkpmBALV0TLP+TnCPd7ZSw5n hHoq5tATcKK4NFpshd66lSGC5bkym7GoY1ea3dJ4oO0ca9BLkRxBcfkREtT/6+InGKK0 uf3g== 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 ci2si1170207ejc.211.2020.11.04.02.42.01; Wed, 04 Nov 2020 02:42:24 -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 S1729854AbgKDKkI (ORCPT + 99 others); Wed, 4 Nov 2020 05:40:08 -0500 Received: from mx2.suse.de ([195.135.220.15]:58522 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729227AbgKDKjw (ORCPT ); Wed, 4 Nov 2020 05:39:52 -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 3031BABAE; Wed, 4 Nov 2020 10:39:50 +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 v3 02/11] clk: bcm: rpi: Release firmware handle on unbind Date: Wed, 4 Nov 2020 11:39:28 +0100 Message-Id: <20201104103938.1286-3-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/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.1