Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1064738pxu; Mon, 23 Nov 2020 10:41:32 -0800 (PST) X-Google-Smtp-Source: ABdhPJwgzLzmtrnyzGm3aNzYIFqk68xb6KnDn7QRRLmYV84QNA3Y2HI6VFjbSL4z2zmbsQYJLt8a X-Received: by 2002:a05:6402:c05:: with SMTP id co5mr515053edb.247.1606156892341; Mon, 23 Nov 2020 10:41:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606156892; cv=none; d=google.com; s=arc-20160816; b=LSqJ+mESAylvPy55iN40CwXWlimZ5AgwOCLQ4tNdcllqakXocmBLsY9ThrAh18z9B3 TQQVxDyx1BQZiNTT7qF2+S7f0uNX5be6MNDCFIiWBEOer9Ukv3gYLzJuVr/YFhWz5OCo p74ma7kmlX6UmhpbJ3Pfewt1R1kCkciy9aZNy8k9ZQ1DlVSCT7aDMhFkhXgP1qc+wlyp dZVzxAlPC3azQyixQ4AjZyZYL3A0Fbf+e44CFwwOd1/It04hqElb9sw1xfwtrL3mGIp1 y20yocxhHwcCb74plgDBJx9scp//wPjE1P8B9iTEZUHpiUciRP3qb/rtFkwqLKamBAZ5 jBAQ== 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=W0L6kUlz0jAj0Pyyl0TcXNuIML7lhJcfMm0ADR6b8NU=; b=SKYk8LFJxa7hcVV0nfQdMfYExWTFJHpIuvS7nvetVvZ+0HRp4ndShYGDKCKZ9qIg+4 Zhz/n9x1vtMJIHx2VIDNBLq3h7PncWuTnTlqVQUWCb9rls/uahXk5eFU9DNkWROT+3Dx B+IxWQI/WdorZA5eJOgdHhZ8QUy3dkOUcz6kTu0uPOCPdbOoU2AS/zD26gLrwtCUSUA1 8mYUCO51s/DU+on5BfAwylVqd2MKC6x4ClzRW1RDZH+11tTZG/HrKgY58oL68nUq5Z9g YIAnfDsLs4gB+lCO4AphNqHQ3tHKRIfvo1nAoFlgMQnnCVTTRjf+HClmqGqkAIBIyezu OsHQ== 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 y21si6979746eje.744.2020.11.23.10.41.09; Mon, 23 Nov 2020 10:41:32 -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 S2387970AbgKWSix (ORCPT + 99 others); Mon, 23 Nov 2020 13:38:53 -0500 Received: from mx2.suse.de ([195.135.220.15]:59432 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387749AbgKWSiv (ORCPT ); Mon, 23 Nov 2020 13:38:51 -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 E3727ACA3; Mon, 23 Nov 2020 18:38:48 +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 v5 07/11] staging: vchiq: Release firmware handle on unbind Date: Mon, 23 Nov 2020 19:38:28 +0100 Message-Id: <20201123183833.18750-8-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/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 f500a7043805..6c196cade4a0 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2732,7 +2732,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.2