Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1308771pxu; Sat, 12 Dec 2020 08:32:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXXsw5x8s4nEt8ZednrsLWSDl4eDPmRDWcP8rHhf6CTfOMTvtnXXkkDmRs56NdOkKm8Bhn X-Received: by 2002:a17:906:d8a1:: with SMTP id qc1mr15327210ejb.294.1607790725615; Sat, 12 Dec 2020 08:32:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607790725; cv=none; d=google.com; s=arc-20160816; b=ouHYClPTI6KSYIkmaityrFfgYkNqNw1sjAyjcl1/VD0jgZJA8hDJuUsu1nHoISm/mr lNSCm4Ozmwb+XZVg5uCLbGrpuAROxgSJN6eMq5As+7u7bWAeJhApwseubNl38RDdL2Wg lxEJzkgKNWPgCHIIzKztFShanBZDufYe7cPFpy+UBeW10TeWLljIMZ8KpS8FB0hcM1c3 qmWeQqrZlZ0mnlm1+8CQUWB4MTElgIXS5LyXiq3ip2AZNZka9gH1W3JJ9thtEm7ywXfB m0D94Uw3zwBNZX69fuOWSlVW+BwHZoSwcUYYwPrxpKkWLhINetSwhrODcySw+agZsjuJ yaQg== 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=LDtyreSENm3sZyZhZqqqYORPm1VgprR6txVbG3yLQ4g=; b=Jk92QUffqbWJ75X4rS0wHjyQmHl6YfI8U3XhwoQK0fFg+lLh9C79h9gKmRX0QpL08G aTShGCQutKd5TB/a5hI+7C2h/mK0dve66Z3DZ0NfFTmLf6AwVt46bu8CSl4mpz7YjgIf SYLKXbeBYGHdduKlCpiZ7iV1Qhrk65luUumjeVQ/DCPOrxP0Q4Qyrvj7DjPeOvchFl4c KJ6Lpld1n84Umo5k5tVuNzYj/UZZ6zJlt/BiZv/UC/7Cw5hEf2u+Kbxbg4p393zFoJWD o9yPLXTzPlcHxwzXpp/7dhVUoaAzLjaGymg3WpWDp4Nlrf93Cc4uY+A3hGaqEni0VZd/ oKUA== 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 i9si6951938edq.66.2020.12.12.08.31.42; Sat, 12 Dec 2020 08:32:05 -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 S2390972AbgLKQuC (ORCPT + 99 others); Fri, 11 Dec 2020 11:50:02 -0500 Received: from mx2.suse.de ([195.135.220.15]:34340 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389793AbgLKQsy (ORCPT ); Fri, 11 Dec 2020 11:48:54 -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 9CC66B13A; Fri, 11 Dec 2020 16:48:11 +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 v6 03/11] clk: bcm: rpi: Release firmware handle on unbind Date: Fri, 11 Dec 2020 17:47:52 +0100 Message-Id: <20201211164801.7838-4-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201211164801.7838-1-nsaenzjulienne@suse.de> References: <20201211164801.7838-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 Reviewed-by: Florian Fainelli --- 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