Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp121339pxu; Thu, 22 Oct 2020 17:35:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzA8zkL/vaZtbSTJPNzhKhlv6JVzpNUxa+pL3wUa85I+emoWv9Uwvr8jpnDz9ReFXyA/Rzn X-Received: by 2002:a50:9ea6:: with SMTP id a35mr4836020edf.52.1603413316258; Thu, 22 Oct 2020 17:35:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603413316; cv=none; d=google.com; s=arc-20160816; b=vXCgV5QqgUJhQCtkoZfbi5GAW2tmuMLQVtxXvQ6wS7K1mUqFS6sk0a797J03thBQ5F WG3VTC76rVcA+M/LdAca0m3tahLG4rpS3E3FQNKAiddY7PC4ztMZ71tTq+mQMp/4NK/0 kBXcJxjP0Mh5575GlWJ2HBkmeM1vMq0UZsdOJTf6igYGJdKwVF1h701SZNhv0cVoMWQK g+QZ6qqdi4w4WLur1FtreQnZLt/NUzdn5wPXaEHSoH+xLSQT1KHFPPKVgcCJ4nRkFShx F+2Anj5WaCEwlp5ZyepmoabhnAefGzlDlyU2b/MHDxGrywAtLvSTlhZCdXnbJjQIVwoK j2bw== 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=Sxgmah3zxytuFL3AdPs5e2NQ2wwuYWcVUlkLV+F2kM4=; b=VOMu7wEujx5zdAK8ZYycJz7r/K8KX7wcsBWU2TRLSQTPdWL3SZn5jQOrp5BcGcR17a tsXUBl5VNfU0dh89oxICt2r9WgthsKDT5s7B/4vLk5SfXDI5G96ilhY/NXMEie39vqye yHrj6ADZS7u92n7JNg+7XMgwh4gYlyDAYQ6qf2g/MPWQ/Q1ZS9AYNDVCvWYGshwsIgtA +FUjR/wg4MHENNOlMgFpV/PQ/dTU55ftnlX98zGg0xL3ld0r/218yUJqN7BI0vR82ybt hWPJAqfgRcoxLI+pIVhbGPuQHZ69UUc8uh3cLFY4HEQt+RaN8z3ZCwutXgYlfrPbVZf4 rUPw== 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 l2si1032070ejf.667.2020.10.22.17.34.35; Thu, 22 Oct 2020 17:35:16 -0700 (PDT) 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 S368923AbgJVP7S (ORCPT + 99 others); Thu, 22 Oct 2020 11:59:18 -0400 Received: from mx2.suse.de ([195.135.220.15]:48680 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S368899AbgJVP7P (ORCPT ); Thu, 22 Oct 2020 11:59:15 -0400 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 33D51ADFF; Thu, 22 Oct 2020 15:59:13 +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, Nicolas Saenz Julienne Subject: [PATCH v2 06/10] staging: vchiq: Release firmware handle on unbind Date: Thu, 22 Oct 2020 17:58:53 +0200 Message-Id: <20201022155858.20867-7-nsaenzjulienne@suse.de> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20201022155858.20867-1-nsaenzjulienne@suse.de> References: <20201022155858.20867-1-nsaenzjulienne@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Upon unbinding the device make sure we release RPi's firmware interface. Signed-off-by: Nicolas Saenz Julienne --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 3 +++ 1 file changed, 3 insertions(+) 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 01125d9f991b..dfa4d144faa8 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2771,11 +2771,14 @@ static int vchiq_probe(struct platform_device *pdev) static int vchiq_remove(struct platform_device *pdev) { + struct vchiq_drvdata *drvdata = platform_get_drvdata(pdev); + platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_camera); vchiq_debugfs_deinit(); device_destroy(vchiq_class, vchiq_devid); cdev_del(&vchiq_cdev); + rpi_firmware_put(drvdata->fw); return 0; } -- 2.28.0