Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp3624788pxb; Mon, 24 Jan 2022 13:48:05 -0800 (PST) X-Google-Smtp-Source: ABdhPJzSzMLaJ5eiGccX1aHql9dzX/a7w+y/6/OfNBipxg2hCrZeQ6BkpGZKMQKi/bvk5fcregkK X-Received: by 2002:a17:90a:7c02:: with SMTP id v2mr230897pjf.81.1643060885304; Mon, 24 Jan 2022 13:48:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1643060885; cv=none; d=google.com; s=arc-20160816; b=SnW6rxGfb6T4+qV/iF2oI6GbLNtPA1vT91wtq4VkhPXWT4ZYIgub7oKJfiSd7Lkj0s rNJebU1xFPKITxRBi5+XDMOnTcY2Ns3iOKvF9TKyasBFCfYBIQGxpnmy8v+qiY4XclMz FC1/gZt58umfhX0sGpK91Qx8D/c08NLORQeSNQNCmHXxsjsIF7Sctw6ysaITZl01QH+1 Kc9FGiX9ZiFYLApLYTYhE4h2XRV55HpvTauguNS0VxnDPqU1Sf7JwyUQlsxsr0p7c65o KjrqvwyzVJkzHfpt1lym72z4iaR8esslx/LELtcMVSLNk1eWxcjE4bvIx+BnX69Yxv8i Wwvw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=zpWngx6KTRQpAt5Ox/bI1MyDJK10QT1jOA6nCHEtQpo=; b=Hx3fDpdHdy3JQoOlmCiJ9muIlz2e9yMPoj9GQHoHiI971cUwoC+p4Rjot/DvfmrazF jnK8tnjgf7JYoSNpLJIn737jUcJu541tdatSGX5pHRPX+i4Ugeyak9G20QYfqvlPv900 oV32HaZI7NqHQ+A8pqEjIs4h1LwYHvRPx8B3FfD3JlIztsEVBtB3pz07i3PF90sjdmwN V/IscBve3TfTngtgcGY+cA1lUbFNR0u9/eb4Oz7hP+0gqhA1glTm8p43pkuWNnJKXJ0O iTDHidobOhftxoahD3bzg7c871jJ/2ejFuUKog1DJJuDOPphXgMSMEIddVM0v57BLgD/ 7Lew== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pYaS9rcw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k63si445586pja.45.2022.01.24.13.47.53; Mon, 24 Jan 2022 13:48:05 -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; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=pYaS9rcw; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1352310AbiAXVds (ORCPT + 99 others); Mon, 24 Jan 2022 16:33:48 -0500 Received: from ams.source.kernel.org ([145.40.68.75]:54492 "EHLO ams.source.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1443904AbiAXU7h (ORCPT ); Mon, 24 Jan 2022 15:59:37 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6126EB8121C; Mon, 24 Jan 2022 20:59:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8214FC340E5; Mon, 24 Jan 2022 20:59:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1643057969; bh=WrCqZQRVcjEqYKrOwStT6HL75yR/zqNeI3M2IfBMBcI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=pYaS9rcwV8D3MSNY8ueFrt07jr54a2JozT6k8ZacJXfkm00N8x3EOusDjIvEMMY7k 6WItLLCAD0+lXqPpqAFooG7XKIUSLYt40kdwg4Q7CwBKka4kXTrTPcVBs9YPsZglGd bv0zo+oEhc8TiE5FdLanLgoUwB7hWC5kODtf/Pec= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tsuchiya Yuto , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 5.16 0121/1039] media: atomisp: add missing media_device_cleanup() in atomisp_unregister_entities() Date: Mon, 24 Jan 2022 19:31:50 +0100 Message-Id: <20220124184129.203107110@linuxfoundation.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220124184125.121143506@linuxfoundation.org> References: <20220124184125.121143506@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tsuchiya Yuto [ Upstream commit ce3015b7212e96db426d0c36f80fd159c91155d1 ] After the commit 9832e155f1ed ("[media] media-device: split media initialization and registration"), calling media_device_cleanup() is needed it seems. However, currently it is missing for the module unload path. Note that for the probe failure path, it is already added in atomisp_register_entities(). This patch adds the missing call of media_device_cleanup() in atomisp_unregister_entities(). Fixes: a49d25364dfb ("staging/atomisp: Add support for the Intel IPU v2") Signed-off-by: Tsuchiya Yuto Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin --- drivers/staging/media/atomisp/pci/atomisp_v4l2.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c index 1e324f1f656e5..0511c454e769d 100644 --- a/drivers/staging/media/atomisp/pci/atomisp_v4l2.c +++ b/drivers/staging/media/atomisp/pci/atomisp_v4l2.c @@ -1182,6 +1182,7 @@ static void atomisp_unregister_entities(struct atomisp_device *isp) v4l2_device_unregister(&isp->v4l2_dev); media_device_unregister(&isp->media_dev); + media_device_cleanup(&isp->media_dev); } static int atomisp_register_entities(struct atomisp_device *isp) -- 2.34.1