Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp495892pxb; Thu, 12 Nov 2020 08:46:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwJwRs4jzrr9rkJWPPEOw0gvmlk9OBs/i+xMbap7YkdWjgRqvVMTAWogXV9rjq2KBPBONxg X-Received: by 2002:a17:906:cb2:: with SMTP id k18mr146677ejh.71.1605199618837; Thu, 12 Nov 2020 08:46:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605199618; cv=none; d=google.com; s=arc-20160816; b=os5yHPbJljZb9ovvgHAmOXNv1TYYnzK4VipFJtK6Vw9dPpomd7SDNlOhUhVXuCPpNz bM3Hvv/y8AcEBC13DUTGdXiXlkkCQr0FMa0pqHNPtKFe3+Jkem8Lomi0AtDXVtiJc9V1 ktMxaKzVOwpLwoovWzZlRXtzix2+sESsujAn6/oEZQfIyDJSPLxdhs6Pydw1ulIwxnFJ zr53m2fKixMNvCYsxUi26UVwAoqP0sVGsV4y6/T16j7GfTE13H8of0UdUUwmo9NpQ9yh R8uNVab8QXZf6r8+Y3VwisEqF7uGPHY8FMVPg/RHcD1Wyv6dXmD5Cue3KRhx7eQCquA8 Ohtw== 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=Wab/UAtdHIKqZFZw107VsJ3WEX09kxKO+Jqoxv+EyLU=; b=sPrZ11KAuxIZ71+rQzgZ2A8C848kmqH0qTEUuUlLWujTcyiFrpzY8PIFonCLFyow1W LZHdfBz7X5CvRP9SyYuoYyOL9yFAqHuRy0uMLuBXOaWDW11tj/wCgHhusnphefVxhbiQ n2IIBsaqiV7IP+/gyWR+U/GDA1gZxd8Tk7jD8HoKhx1i1HPchS8QdMrTEteEz9ufZFH1 4Ss495VuTi/IZ6XsC+ZjNbCu6KI/xHto36WEHQKpIzKpSmyc/W7V2etRyjivflAr+Tr9 pi6UBkfzrGyftwZCTTX22r+i2QnX0Ssce8xczUppWY2G5+1NHJa/em8x15WCN+IwbMQJ sLlQ== 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 w20si3953836ejc.387.2020.11.12.08.46.32; Thu, 12 Nov 2020 08:46:58 -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 S1729202AbgKLQoW (ORCPT + 99 others); Thu, 12 Nov 2020 11:44:22 -0500 Received: from mx2.suse.de ([195.135.220.15]:49880 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729107AbgKLQoG (ORCPT ); Thu, 12 Nov 2020 11:44:06 -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 7FCB9B016; Thu, 12 Nov 2020 16:44:04 +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 v4 07/11] staging: vchiq: Release firmware handle on unbind Date: Thu, 12 Nov 2020 17:36:25 +0100 Message-Id: <20201112163630.17177-8-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/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