Received: by 2002:a05:6a10:c604:0:0:0:0 with SMTP id y4csp116814pxt; Wed, 11 Aug 2021 16:10:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyqorwyzMLr2iXqFIbtWGvHlJP9ljNaNsMyHR4bvk1ZyI4A2wTM9M82MaFDve/ZVS2DQ/Hd X-Received: by 2002:a05:6402:26cd:: with SMTP id x13mr1725391edd.184.1628723448870; Wed, 11 Aug 2021 16:10:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628723448; cv=none; d=google.com; s=arc-20160816; b=lVI5+4vh/vTfCEVVsh8u81Etzm8zsuPBXiQZ4aTQvd4lZNi1ot66BRv4JFRNjDXowf lJn0Euyqn5RmR5NmHA+a1Abn5fqyPvlbKR27yp/zRbLUqLlmx2Uya4PeDZFKI1nWmjA7 NOIFVZeUm0PWlH6MjYFbbyJyOL8SRiRsbI2ifZdBV1lE0C3ZEabjw0+LqFaeh0CGchS3 4F+ZGr0QaLhE44HOs4Bgwe0lprqqW9PnnC9uoQZVU02v6fSPDpYt+EvcxdTWVShUDiaT NeexdEArulM2tDo8Nlonpy5diOhmupR5sgN/3KdZTiWIYpM9czs6pwj/L2TrKLhH4wyc a8mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=kZDlbneRXGwbo61dZw46zjGh9Hd5skXn2y224f9Jxug=; b=JK9530PvLLQsWM7D/9ISOUvzQmVqCki2+zJqvC3uhl+Ah7eFrYIDwMe6fSAHiACU3i TrOErnWjYujwBpRxc8Q3B0S5LoWBlylhCPCCS0DOiabXnjk4Ifd80X+vwRhfyRM+1c5j nrvlQm0ChCvgGpcYCO5FUu2osCHB95TEwPq1pUD+NndrCk4BdOR6yPgNn1npoQZhPdRG H5dNJfgP+FXNmp/HKPf4g6fpMkcG13wdb+fJlAk9eL/TD0NjpELL+nDFa7vCt6o6YQjC X1+/VqepWk6cxQyvz4A7EL0l48kMpZAXvysDDJ2xY/QS93+zQuIA4CcTfIUnlxLEB8Jh f/1g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EkFP1qBE; 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=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m14si742710edr.124.2021.08.11.16.10.24; Wed, 11 Aug 2021 16:10:48 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=EkFP1qBE; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232698AbhHKXGg (ORCPT + 99 others); Wed, 11 Aug 2021 19:06:36 -0400 Received: from mail.kernel.org ([198.145.29.99]:38208 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232434AbhHKXGe (ORCPT ); Wed, 11 Aug 2021 19:06:34 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0B45C6105A for ; Wed, 11 Aug 2021 23:06:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628723170; bh=UsOaT4gmVMtsJlz3K9nEUp4WRF9PrNQoOdiLg+j11SA=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=EkFP1qBEjK0Mb4zMCvRF5exzxAY/75d6muJUDKjoNyYJUPEzWv+BVbY3EDDLrLkLR Mo9tF0vqCaqGYN193KYYVcFKG+e0EQHEgMBS5cVBcbiV7KjYKa60QKDevbzas8qqwT TWMDxcahb3Lc/kUqoz1JD+XGSabDG87fu1xee/3ileHn4wNvEMYmzpYnKvSRWbgpOT RMZctrDRRjqRNZkQmOcF51FiuJKvFL8MjvzHWMyB/YZ0Ts2qZH4UO1WkifY0lGu/7/ pqEW+PxGjSnTaIa2DxFfPYPqv6GAtJnFB8/WjKo8uj/zGn2sGlVvOSjYLRR2XwcGWJ 3Rg6rAJYW/SPQ== Received: by mail-ej1-f53.google.com with SMTP id gs8so7460015ejc.13 for ; Wed, 11 Aug 2021 16:06:09 -0700 (PDT) X-Gm-Message-State: AOAM531qEFQybXsLQlW7neuVNvQtMVwi8oOJPRcynw4huS6JNLB2wVek JN12M1FwZaLJ76plgBwiz0KJ6/tledQ66hmHTg== X-Received: by 2002:a17:906:4156:: with SMTP id l22mr824214ejk.75.1628723168648; Wed, 11 Aug 2021 16:06:08 -0700 (PDT) MIME-Version: 1.0 References: <20210810040148.17157-1-jason-jh.lin@mediatek.com> In-Reply-To: <20210810040148.17157-1-jason-jh.lin@mediatek.com> From: Chun-Kuang Hu Date: Thu, 12 Aug 2021 07:05:57 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] drm/mediatek: Add component_del in OVL and COLOR remove function To: "jason-jh.lin" Cc: Matthias Brugger , Chun-Kuang Hu , fshao@chromium.org, David Airlie , Daniel Vetter , DRI Development , "moderated list:ARM/Mediatek SoC support" , Linux ARM , linux-kernel , Hsin-Yi Wang , Yongqiang Niu , Nancy Lin , singo.chang@mediatek.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Jason: jason-jh.lin =E6=96=BC 2021=E5=B9=B48=E6=9C=881= 0=E6=97=A5 =E9=80=B1=E4=BA=8C =E4=B8=8B=E5=8D=8812:02=E5=AF=AB=E9=81=93=EF= =BC=9A > > Add component_del in OVL and COLOR remove function. Applied to mediatek-drm-fixes [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/= log/?h=3Dmediatek-drm-fixes Regards, Chun-Kuang. > > Fixes: ff1395609e20 ("drm/mediatek: Move mtk_ddp_comp_init() from sub dri= ver to DRM driver") > Signed-off-by: jason-jh.lin > --- > Change in v2: > - add component_del function in COLOR remove function > --- > drivers/gpu/drm/mediatek/mtk_disp_color.c | 2 ++ > drivers/gpu/drm/mediatek/mtk_disp_ovl.c | 2 ++ > 2 files changed, 4 insertions(+) > > diff --git a/drivers/gpu/drm/mediatek/mtk_disp_color.c b/drivers/gpu/drm/= mediatek/mtk_disp_color.c > index 6f4c80bbc0eb..473f5bb5cbad 100644 > --- a/drivers/gpu/drm/mediatek/mtk_disp_color.c > +++ b/drivers/gpu/drm/mediatek/mtk_disp_color.c > @@ -133,6 +133,8 @@ static int mtk_disp_color_probe(struct platform_devic= e *pdev) > > static int mtk_disp_color_remove(struct platform_device *pdev) > { > + component_del(&pdev->dev, &mtk_disp_color_component_ops); > + > return 0; > } > > diff --git a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c b/drivers/gpu/drm/me= diatek/mtk_disp_ovl.c > index fa9d79963cd3..5326989d5206 100644 > --- a/drivers/gpu/drm/mediatek/mtk_disp_ovl.c > +++ b/drivers/gpu/drm/mediatek/mtk_disp_ovl.c > @@ -423,6 +423,8 @@ static int mtk_disp_ovl_probe(struct platform_device = *pdev) > > static int mtk_disp_ovl_remove(struct platform_device *pdev) > { > + component_del(&pdev->dev, &mtk_disp_ovl_component_ops); > + > return 0; > } > > -- > 2.18.0 >