Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp7483100rwr; Wed, 10 May 2023 08:46:04 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6kzHfffZhdQyXCxcdredtgLJcudj0kU9g3lAZcx8XLV25TYG3Luvj5pa6EooZiRQCBxHIA X-Received: by 2002:a17:902:f552:b0:1ac:a058:555e with SMTP id h18-20020a170902f55200b001aca058555emr7359476plf.8.1683733564579; Wed, 10 May 2023 08:46:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683733564; cv=none; d=google.com; s=arc-20160816; b=e/cfWtRdYspL3pRbLwbm6uxXrGfxV/nL085oBneyHNseJekKtX1K1QdKrbsUwXkSUB e5geAT1QgSJOULLK+mubpBT9Q/uM984YkBKa6kYD+KYugYQQMwruF6WTzcbminleXSMU wcM4w2hHTNF0vRnWLllu6AzRTpxVWux19h8zeyj8th91hEmVaP4QRt35y2Ez14gtK/en oTkvnEsy5ANa4Uzlf66vnzldE8c36HOx99Hw4s39T+8M3/8KmHs3HrTK+NsUcvErgsl/ XOtV86OXfZdEyZPHVL1Gg5IfbqPDGiNYEUyKLU6J7AHcMr4CwuVPP0eZukenmu2eUdQF 08rg== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=juWcyeSBe03nI7TSodOkq9zFpeZ4gErVFi+Ebwz3Ux8=; b=kSM3wTF9Krt3Iy5tKWkR51wlpFchpBW+His2v/7TwgXlG0yDw6mDLkIBdVujlTaKIL hXY4NGhROC+qAsp9FInC+tKAPi3lxGArJR7VkVhYH/OIXmikaDD6zvcoWEnhp+lhcmoE Y/oWO+BVPqS1/1Zx+WOitBPf5l1vReuLMqG8XcaLGfXywuM4Nj1YQLPn0mNUzAXou0zC +tTH248Xp6BugKvlqKW5VkD1H8tpIePTKdIdFbyt50UR2f/gxMYxbFLJ3nm5u0WJIAsp PYavzsZ/j7rAiKWLMFlcGktzlSJPn5veH/IEm9XnnIG7JmQlge92+6dAbGAqgNonLOpr QJ2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="bH/rifR2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id h11-20020a170902748b00b001aaec7031b5si4044768pll.182.2023.05.10.08.45.50; Wed, 10 May 2023 08:46:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@chromium.org header.s=google header.b="bH/rifR2"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=chromium.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237493AbjEJPcI (ORCPT + 99 others); Wed, 10 May 2023 11:32:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236995AbjEJPcH (ORCPT ); Wed, 10 May 2023 11:32:07 -0400 Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CC1DA10F7 for ; Wed, 10 May 2023 08:32:04 -0700 (PDT) Received: by mail-pf1-x431.google.com with SMTP id d2e1a72fcca58-643a1fed360so4137079b3a.3 for ; Wed, 10 May 2023 08:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1683732724; x=1686324724; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=juWcyeSBe03nI7TSodOkq9zFpeZ4gErVFi+Ebwz3Ux8=; b=bH/rifR2+9qrvGxj7TGq/T7hSFeNNm8MW8DaYbysKrlNYXI5LR0Q61vXSzKVOX3W5B SHCCJhYLlyXR9pxGi++ZILCd2enTcwsaL8oDkHLgOgamlJgrF9mxYAKBxJk8Gv4L5BTs G0tGHCfpEqXhjee9B+2Qe71/0+qn3cDmiOBLc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683732724; x=1686324724; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=juWcyeSBe03nI7TSodOkq9zFpeZ4gErVFi+Ebwz3Ux8=; b=T0L6h9pgnplfYSSOGompLESUjN1UMHwNh1dF9cAAD/aVwJf8oTwt9RJU2WelCi7N+b IKVTzBsS8l3qT/TrKBnfmLDZOVKNjld++WwJWgdE4chRUEU0y58iFCYTZEsk3Akch9k+ uqnq6HDcsy4y/xgN8ShaGiAgj2YiD1o74c+r8I4pxLuqhpPTpGeVWzvqVUpYrGgdRQxG oIwDXAinXBZ/cZIXCHALwo9iUV6mPcZ6lnder0tgajs+V6tcZknxQlH6O9/I5JycLmJY EPJ/pGIuwMqd1M+ggn+23LNZUkEFQzBuwIroJIkhGYtqJJARep4E1l7VIN+46YM0ZmX3 pgpQ== X-Gm-Message-State: AC+VfDydLwPCK/fTbpJ7Q/Wx5YlLXUyGv3sCqkMJ7ELPiLoAz0qYsbsU 3JtK4bDIOMoOykycVGItucrmAA== X-Received: by 2002:a05:6a20:9187:b0:dd:e6f5:a798 with SMTP id v7-20020a056a20918700b000dde6f5a798mr23115371pzd.6.1683732724336; Wed, 10 May 2023 08:32:04 -0700 (PDT) Received: from fshao-glinux.tpe.corp.google.com ([2401:fa00:1:10:d50a:c03e:3f7a:7e5f]) by smtp.gmail.com with ESMTPSA id y10-20020a62b50a000000b00643b04b515fsm3643210pfe.160.2023.05.10.08.32.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 May 2023 08:32:03 -0700 (PDT) From: Fei Shao To: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= , Hans Verkuil Cc: Fei Shao , Andrew-CT Chen , AngeloGioacchino Del Regno , Matthias Brugger , Mauro Carvalho Chehab , Tiffany Lin , Yunfei Dong , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org, linux-mediatek@lists.infradead.org Subject: [PATCH] media: mediatek: vcodec: Convert mtk_vcodec_dec_hw platform remove callback Date: Wed, 10 May 2023 23:31:35 +0800 Message-ID: <20230510233117.1.I7047714f92ef7569bd21f118ae6aee20b3175a92@changeid> X-Mailer: git-send-email 2.40.1.521.gf1e218fcd8-goog MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This aligns with [1] and converts the platform remove callback to .remove_new(), which returns void. [1]: commit a3afc5b10661 ("media: mtk_vcodec_dec_drv: Convert to platform remove callback returning void") Signed-off-by: Fei Shao --- drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c index b753bf54ebd9..bd5743723da6 100644 --- a/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c +++ b/drivers/media/platform/mediatek/vcodec/mtk_vcodec_dec_hw.c @@ -193,16 +193,14 @@ static int mtk_vdec_hw_probe(struct platform_device *pdev) return ret; } -static int mtk_vdec_hw_remove(struct platform_device *pdev) +static void mtk_vdec_hw_remove(struct platform_device *pdev) { pm_runtime_disable(&pdev->dev); - - return 0; } static struct platform_driver mtk_vdec_driver = { .probe = mtk_vdec_hw_probe, - .remove = mtk_vdec_hw_remove, + .remove_new = mtk_vdec_hw_remove, .driver = { .name = "mtk-vdec-comp", .of_match_table = mtk_vdec_hw_match, -- 2.40.1.521.gf1e218fcd8-goog