From patchwork Mon Aug 17 15:13:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Kroah-Hartman X-Patchwork-Id: 266437 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.8 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BE660C433E3 for ; Mon, 17 Aug 2020 15:48:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7E1392075B for ; Mon, 17 Aug 2020 15:48:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679329; bh=IbtFUq1M4a+T5FDyNiD8FP4S3uCsBUq+ZNYqk1+huy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=Cp0dbM1zbPCrXLsMiLFasuKgkTikkJP1jVyJnj5HGQbG19WmixL0qk6QecQ3Q5xP2 ERkyFf8Gsp+RKP2z6PPkmqv1LkihDIADIL0ziFrp7QBiDr3t0Fa0nr9uFbfkJ9vK1b mF5Es5FChljYTXdErGR5AjJ4InKZDMwY7ixNxXBc= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387533AbgHQPsq (ORCPT ); Mon, 17 Aug 2020 11:48:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:60906 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730868AbgHQPsm (ORCPT ); Mon, 17 Aug 2020 11:48:42 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8B40C2065D; Mon, 17 Aug 2020 15:48:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597679322; bh=IbtFUq1M4a+T5FDyNiD8FP4S3uCsBUq+ZNYqk1+huy0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=yl3vlZnkkyiBrZn6koneTqNp6/HiOQE1EFMTNDdDrUkSn7L+oS4COzXEgoQRgYc4H FLIhPZ3KQTzBlAoL78dwtF7/xuNfhp1xJgPk2st+JIwccp3f6su+pwMIPqDa5jazWJ ieWxCDOIBPQTkAoXholj7iQVrsk7oHwIB8S/AgjI= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Phil Elwell , Jacopo Mondi , Nicolas Saenz Julienne , Sasha Levin Subject: [PATCH 5.7 172/393] staging: vchiq_arm: Add a matching unregister call Date: Mon, 17 Aug 2020 17:13:42 +0200 Message-Id: <20200817143827.965175428@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200817143819.579311991@linuxfoundation.org> References: <20200817143819.579311991@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Sender: stable-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: stable@vger.kernel.org From: Phil Elwell [ Upstream commit 5d9272e28a9a6117fb63f5f930991304765caa32 ] All the registered children of vchiq have a corresponding call to platform_device_unregister except bcm2835_audio. Fix that. Fixes: 25c7597af20d ("staging: vchiq_arm: Register a platform device for audio") Signed-off-by: Phil Elwell Signed-off-by: Jacopo Mondi Signed-off-by: Nicolas Saenz Julienne Link: https://lore.kernel.org/r/20200629150945.10720-9-nsaenzjulienne@suse.de Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c | 1 + 1 file changed, 1 insertion(+) 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 a1ea9777a4445..73b1099c4b453 100644 --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_arm.c @@ -2803,6 +2803,7 @@ static int vchiq_probe(struct platform_device *pdev) static int vchiq_remove(struct platform_device *pdev) { + platform_device_unregister(bcm2835_audio); platform_device_unregister(bcm2835_camera); vchiq_debugfs_deinit(); device_destroy(vchiq_class, vchiq_devid);