Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp649908pxu; Fri, 11 Dec 2020 10:48:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJy99FIYr/TPnNjkzMST9NDSHMKsKzFsuYs4kZP+0fOgFjQWy3spBpWQIQq1hG4UnlWa7vJu X-Received: by 2002:a17:906:6d0b:: with SMTP id m11mr11981997ejr.230.1607712533921; Fri, 11 Dec 2020 10:48:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607712533; cv=none; d=google.com; s=arc-20160816; b=P5BFveMb/WWvHC5jXL/KhjYtUngukHq06pYxAY7+HwyaOhojXfbdUEYVbzbozY2Zw+ TBjqDYZb1hk78uhLA8/F9FVgHG+dH4GcSeO1vx64XasxoL5/FtphxGXe/zR+IvNVXOOF XbzYANQ9cZgDEhYLQKhdulHr77q8f/JHHU8kkb9Vgib0IG7seeYtP/tPtLpjBVt3lzxF RmlELWN9KRK1c/itBfibrSKILTDS+hqWaSLvze9HxgfQTK6y0KrPy1J+NaubGMM4OM8e 8pyj0l5Mdi+XqwUVRDk7iyWMa94me+VOZ0yWm8ujNLPdlQRWPhSaYIzV3P5/i4HXTt48 5oaQ== 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=RJ5o5LZQeI8URd2+n6X/GaikDdM7vU3TqAV+ulXKnrY=; b=DdWjj8Vywk02emda0ar5DF+uYXgPWeprZ1T9XBvBAsioBluTKZsi3LZho/XsvJ3Z6M CbhMYUSDgU5XPK6j/AQJ7Jv1pAUECyXS76GijbV/yMI7L+y2fco52FvmZ3tAVB6KBVA5 pRBlo2yZwEvsBoNQLlIj5e+fTuZs6Ccs3qwqBs4AWcUumW8zxyNt8bolPxSpmU7/vWFk qxfBsd2n0MDQiXy0G4vOv6JZgjwZvksvmP1XdSewffJrb/BVdrt00MYjLi9dEcfd9Fr2 WU+wLoyFN/U7BVgL+aOFCd7uBbn+fO/SHirKezqIulZQoLWmaS74G4VpWgrG4cVuK7Uz tFlQ== 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 91si6630497edy.541.2020.12.11.10.48.26; Fri, 11 Dec 2020 10:48:53 -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 S2391175AbgLKQuW (ORCPT + 99 others); Fri, 11 Dec 2020 11:50:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:34830 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390164AbgLKQtd (ORCPT ); Fri, 11 Dec 2020 11:49:33 -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 8237CB1C1; Fri, 11 Dec 2020 16:48:16 +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 v6 07/11] staging: vchiq: Release firmware handle on unbind Date: Fri, 11 Dec 2020 17:47:56 +0100 Message-Id: <20201211164801.7838-8-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/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