Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2810613ybk; Mon, 18 May 2020 08:27:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7JAX7xBmXlL9Huuq7+czsS3tgIbi3peGvZtarjl3IEAePYAud7sSRsrtF4wMz/f+kdbsY X-Received: by 2002:a05:6402:30b2:: with SMTP id df18mr13645709edb.323.1589815651850; Mon, 18 May 2020 08:27:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589815651; cv=none; d=google.com; s=arc-20160816; b=hzYTS82KI695EgZQFEEPYUHgs401L0yi/kyFoz2/rxnPgEKGv8oHvERm8ZZdzNTc3I wRhhJzM3V2SQMUEvuyi7TNrYOUcFQq1pC7yeViWqY2h612Ts5ZANG7mOC0jUPx/3l6mn tkyz6JUXwT4HR0kElMiyJzVu5EKlyMa6+sY8J20YlPrlji2KWCY3+JMkl0x5BS+nd6NF Vt5V2NM6/0PEJvOl2wWTKMmzumOx28s1sdVAxj/n3UsffvzlauA7PiYpOMzN3bA1jhNv NmRLvaij/AA/LU+0/oXW5a3FJCyhZIo8eCxRLNh4zFx4vzcZT277U2H0M3WoUk/FRjtU IvTw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=qS2cXdkwpT8FKz9DAlCGzdPtjZkQSb2loRw4RBxhbbQ=; b=ajJ8n6PUeWESZkxSDVavVT7U/gXjvX/wq5ZV3cCExAYxrAN1j2oqEIt+AsA7b/tCkA uw/VAvfs6f0lzNr8awp5q7L4fniQhquSSoaicMM3bCFfFhdVlB6NRbp8utlWIWWXJvxK BPFjvNq7aXyNCpvU1CCUFhV8Vc6TOhS/WaVvYPsChMLZ3mE32t101ZWfbAbSA9o5m9Ng KZ8M33hQ1wmH16nXjFtMsw54rtN7F0XoOTEpOis6PLtJY07gsOgjL9Cj/kbJbEG8m14D y8lktnC75lKlWpHK7P3eR/YgesXXhBlTUfMwe/Vd+HGGN5Omy/HEYhYfCkTuCP4GjDhS g/eQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rejD3Cq3; 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 c17si6884334ejn.336.2020.05.18.08.26.58; Mon, 18 May 2020 08:27:31 -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=default header.b=rejD3Cq3; 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 S1728331AbgERPXZ (ORCPT + 99 others); Mon, 18 May 2020 11:23:25 -0400 Received: from mail.kernel.org ([198.145.29.99]:60074 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726918AbgERPXZ (ORCPT ); Mon, 18 May 2020 11:23:25 -0400 Received: from mail-ej1-f47.google.com (mail-ej1-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3AFF3207D8 for ; Mon, 18 May 2020 15:23:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589815404; bh=yxtbYhqiBpX0vaCKJ8nincWDlOttWPQGQYeL0KqTH88=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=rejD3Cq3JkMBTzUozSEQ/NMDN4wNabDl16h10hnxRO/FeHWgmHuBR1gpptZvSLEmk MerhXjFPxqumyVcS4pDPVo779TNtQyQiVWYUsMSyf/WgUSilWfXZfG2UVY6cyEzsRH qEihdwS5ax4XJoPtGyu0LU44g3M2x4HNHH/cZuEo= Received: by mail-ej1-f47.google.com with SMTP id n24so1148652ejd.0 for ; Mon, 18 May 2020 08:23:24 -0700 (PDT) X-Gm-Message-State: AOAM532zXe9t0Si6vOa+QDwY02AGFjec2WbCeTS1FoHZ/qumgufp+13g hkfXWzqAskpu94aIJ+srOn6AZvi9igBGsL2iyg== X-Received: by 2002:a17:906:924a:: with SMTP id c10mr10734314ejx.360.1589815402680; Mon, 18 May 2020 08:23:22 -0700 (PDT) MIME-Version: 1.0 References: <20200518112254.23692-1-matthias.bgg@kernel.org> In-Reply-To: <20200518112254.23692-1-matthias.bgg@kernel.org> From: Chun-Kuang Hu Date: Mon, 18 May 2020 23:23:09 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] drm/mediatek: Delete not used of_device_get_match_data To: matthias.bgg@kernel.org Cc: Chun-Kuang Hu , Philipp Zabel , David Airlie , Daniel Vetter , DRI Development , Linux ARM , "moderated list:ARM/Mediatek SoC support" , linux-kernel , Enric Balletbo i Serra , Matthias Brugger Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, Matthias: =E6=96=BC 2020=E5=B9=B45=E6=9C=8818=E6=97=A5 =E9= =80=B1=E4=B8=80 =E4=B8=8B=E5=8D=887:23=E5=AF=AB=E9=81=93=EF=BC=9A > > From: Matthias Brugger > > The driver will be loaded by via a platform device. So we > will need to get the device_node from the parent device. > Depending on this we will set the driver data. > As all this is done later already, just delete the call to > of_device_get_match_data. > Reviewed-by: Chun-Kuang Hu > Signed-off-by: Matthias Brugger > --- > drivers/gpu/drm/mediatek/mtk_drm_drv.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/gpu/drm/mediatek/mtk_drm_drv.c b/drivers/gpu/drm/med= iatek/mtk_drm_drv.c > index e2bb0d19ef99..63ec92ba0e92 100644 > --- a/drivers/gpu/drm/mediatek/mtk_drm_drv.c > +++ b/drivers/gpu/drm/mediatek/mtk_drm_drv.c > @@ -447,7 +447,6 @@ static int mtk_drm_probe(struct platform_device *pdev= ) > if (!private) > return -ENOMEM; > > - private->data =3D of_device_get_match_data(dev); > private->mmsys_dev =3D dev->parent; > if (!private->mmsys_dev) { > dev_err(dev, "Failed to get MMSYS device\n"); > -- > 2.26.2 >