Message ID | 20230719075056.72178-5-angelogioacchino.delregno@collabora.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp2282109vqt; Wed, 19 Jul 2023 01:18:47 -0700 (PDT) X-Google-Smtp-Source: APBJJlFAgq3/be4IkWWo9WPnloQzEYHgPvsn6qdc0EeNVbGdXv8du+2Lnzw1t9st61j0Kp1ExDXu X-Received: by 2002:a17:906:6a17:b0:992:ef60:ab0d with SMTP id qw23-20020a1709066a1700b00992ef60ab0dmr1754149ejc.69.1689754726762; Wed, 19 Jul 2023 01:18:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689754726; cv=none; d=google.com; s=arc-20160816; b=EX9Q+gi8AAs8Db/ei/CUzO32GRc9qse18sJlP81AQnd3UcR491u7xpIugDsT2UfN7v yDhZcRTyIBTnO10rQv7wYUO1nCM6IPa2a5Y1Kc6vcijTJH4y0ZomPjaFE2oYeuoT77uL 7O6bxkmY8ZChrBYds2/lSzTpmY4hKAI8ZQV9AHeerETNcNKwf2ugYEQ2wUVsLZJKtal3 iuTIH64kFngfoktZVwmj7J1fzOPcplslNbVaj0r2l/IxkKQhq2uXodM1870eZc7GYK4c zE9xV2ceLeEhR0B/q0H4JPjo6EMYDQysMS6Jxf4trxJ5D+gXpuZvitTV5DhVj70LL0pA /dsA== 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 :dkim-signature; bh=BnhTI/F82CgPOVx1SlpJlEZGaZUaIbcTkTSKiCyKd/M=; fh=NKnLsaTUs6DGQa/OThi18WPpEgJ637Y16FMWW8s0AeQ=; b=tkXaE1NcOyWPcvuZXoEanTzIfySLwI4pQPdONxUbuoUcy3Z6URMV4z0g85uPauxCS8 Atm49p20772Q3W0oLyT35d0nupeOLFCAJ1oxAQbBI/dwQdicBKb+EnS2MUQ1kyHNYQ5E DaRkCKiKV7YEKytA4RkgVg9uK6ak3P2+wbN6rb8r8BkrteC6bGMf1OpNzell4F2ibdz8 m4WQvjtUwt/da3ob55kVYSM0hWyCSrPGrPkk93cOkW/NMmC19tybNtjR4r7bVikFdv9p UzSe/1yPpz/Bdg+wGMnnidbJ8e1xoYDbgElVWifPaMADmq9RlRo+RJ2+4sK7EmKOlB6K 0lKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=PKZwt9Y3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o6-20020a1709062e8600b00992d262fb29si2618172eji.992.2023.07.19.01.18.22; Wed, 19 Jul 2023 01:18:46 -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=@collabora.com header.s=mail header.b=PKZwt9Y3; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbjGSHv1 (ORCPT <rfc822;assdfgzxcv4@gmail.com> + 99 others); Wed, 19 Jul 2023 03:51:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44154 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230006AbjGSHvL (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 19 Jul 2023 03:51:11 -0400 Received: from madras.collabora.co.uk (madras.collabora.co.uk [46.235.227.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E21BBE47 for <linux-kernel@vger.kernel.org>; Wed, 19 Jul 2023 00:51:10 -0700 (PDT) Received: from IcarusMOD.eternityproject.eu (2-237-20-237.ip236.fastwebnet.it [2.237.20.237]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: kholk11) by madras.collabora.co.uk (Postfix) with ESMTPSA id 2F6A16607072; Wed, 19 Jul 2023 08:51:09 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1689753069; bh=lw4Zkv3oS6GSkPKOSPEXOFTpN59kNOlACTF4/SJM4pY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=PKZwt9Y3MCS4bZ3uTZssAD3AlKromVqKaRw/2gYboZ24CuR/b4gJ/3r995tND22qt yTbJS+cf5GkoR+y/b5VybefGocyes/d5UseDbgAG+6kmKpoEf1KKhH/ZjtfEnR9ZSJ mrRuZdYqTbYZZDqqXUdKIcMvPEiW09dwEBIaZAJJQgADK5CHD/p0MGvuz6Qlo+dwo0 UpA6YaBcF/Duh5MhqIP1Mr8kPUad2ERTBeI7YxUJvbipGCMYbYEhz6tu7dpKzvlqxQ hLXw+WX6jKkcly65ZCXs53OurQ4wNDeNXSupqKxl+esmLd2W0aCsjIfD2nVdkPtNVm YitujLBf8wMGg== From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> To: chunkuang.hu@kernel.org Cc: p.zabel@pengutronix.de, airlied@gmail.com, daniel@ffwll.ch, matthias.bgg@gmail.com, angelogioacchino.delregno@collabora.com, dri-devel@lists.freedesktop.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kernel@collabora.com, fshao@chromium.org Subject: [PATCH v2 4/6] drm/mediatek: mtk_dpi: Switch to .remove_new() void callback Date: Wed, 19 Jul 2023 09:50:54 +0200 Message-Id: <20230719075056.72178-5-angelogioacchino.delregno@collabora.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230719075056.72178-1-angelogioacchino.delregno@collabora.com> References: <20230719075056.72178-1-angelogioacchino.delregno@collabora.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771836252035100472 X-GMAIL-MSGID: 1771836252035100472 |
Series |
drm/mediatek: Small mtk-dpi cleanups
|
|
Commit Message
AngeloGioacchino Del Regno
July 19, 2023, 7:50 a.m. UTC
The .remove() callback cannot fail: switch to .remove_new() and
change mtk_dpi_remove() to void.
Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
---
drivers/gpu/drm/mediatek/mtk_dpi.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
Comments
On Wed, Jul 19, 2023 at 3:51 PM AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> wrote: > > The .remove() callback cannot fail: switch to .remove_new() and > change mtk_dpi_remove() to void. > > Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Reviewed-by: Fei Shao <fshao@chromium.org>
Hi, Angelo: On Wed, 2023-07-19 at 09:50 +0200, AngeloGioacchino Del Regno wrote: > The .remove() callback cannot fail: switch to .remove_new() and > change mtk_dpi_remove() to void. Reviewed-by: CK Hu <ck.hu@mediatek.com> > > Signed-off-by: AngeloGioacchino Del Regno < > angelogioacchino.delregno@collabora.com> > --- > drivers/gpu/drm/mediatek/mtk_dpi.c | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c > b/drivers/gpu/drm/mediatek/mtk_dpi.c > index e9c5a0f44537..3a140498c98a 100644 > --- a/drivers/gpu/drm/mediatek/mtk_dpi.c > +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c > @@ -1087,11 +1087,9 @@ static int mtk_dpi_probe(struct > platform_device *pdev) > return 0; > } > > -static int mtk_dpi_remove(struct platform_device *pdev) > +static void mtk_dpi_remove(struct platform_device *pdev) > { > component_del(&pdev->dev, &mtk_dpi_component_ops); > - > - return 0; > } > > static const struct of_device_id mtk_dpi_of_ids[] = { > @@ -1122,7 +1120,7 @@ MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids); > > struct platform_driver mtk_dpi_driver = { > .probe = mtk_dpi_probe, > - .remove = mtk_dpi_remove, > + .remove_new = mtk_dpi_remove, > .driver = { > .name = "mediatek-dpi", > .of_match_table = mtk_dpi_of_ids,
diff --git a/drivers/gpu/drm/mediatek/mtk_dpi.c b/drivers/gpu/drm/mediatek/mtk_dpi.c index e9c5a0f44537..3a140498c98a 100644 --- a/drivers/gpu/drm/mediatek/mtk_dpi.c +++ b/drivers/gpu/drm/mediatek/mtk_dpi.c @@ -1087,11 +1087,9 @@ static int mtk_dpi_probe(struct platform_device *pdev) return 0; } -static int mtk_dpi_remove(struct platform_device *pdev) +static void mtk_dpi_remove(struct platform_device *pdev) { component_del(&pdev->dev, &mtk_dpi_component_ops); - - return 0; } static const struct of_device_id mtk_dpi_of_ids[] = { @@ -1122,7 +1120,7 @@ MODULE_DEVICE_TABLE(of, mtk_dpi_of_ids); struct platform_driver mtk_dpi_driver = { .probe = mtk_dpi_probe, - .remove = mtk_dpi_remove, + .remove_new = mtk_dpi_remove, .driver = { .name = "mediatek-dpi", .of_match_table = mtk_dpi_of_ids,