Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2934978ybk; Mon, 18 May 2020 11:29:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyoFnlR32APXcsR5Oew2n4549FUBhigM4C/CEr6BS/XkBn/SQMH9djGyC6J/K985rlGEn26 X-Received: by 2002:aa7:cad3:: with SMTP id l19mr15484859edt.335.1589826575945; Mon, 18 May 2020 11:29:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589826575; cv=none; d=google.com; s=arc-20160816; b=qJrfJS/N0QkjafyGbmaVA4WeGdOyKH2KKmhVgPZITHFMa5BEWeOO/waxHEOmvQ/rWq aGwCXOk55TAcZX2hQzDH75bLvQ8+AkSEAm3JPk+HTbanTP2aJkEcrDrHou3Q6i9Gpf3T s5Hw82LHV54u1Uuue7hQ1j+iaBe9lPsiU834yyzjvuy2rIC1mSsW1Ft+njOVTBS9MS9Z D/uOMZ3RN0pD5Y68QcWHTXzQrLocyN/CwkC3TESnwS4Fn/SAOj21Lii+jHEPAUcV3V1l FK7qiDogjmdsj9Oxdj5M0WW+DIfupehkklCqRHa1lV8Ns8koB9uVoryxpznHXOW76wyZ QgLQ== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=dY9aZl5bDcNiiOadXrmJ+kjOAJLz8XDafA2mL7YVJU4=; b=sPhmSMLHU5RPwcp4LkOvrmfYxRZQhfBnWN8Gt9dVYLN26hKddSVWXpRxo7ikUBZwsf xywRDL1gueLfdyGBjNHYnVFiSyHFx7Jghap90M/Z4gP7upQJzQ8DuTyh+wl/cLQXq+FN e3xaPVB1hCA5BmdctVZVfcc6/V11cjdNlFA0BcB1Kvy+NkVpr6862Gfa6tPiKtX9EqXn cQIihPsO89t06WMW38C6WcsuLnB4Cu+ouY2SG9aJ//iA05tf4TE7JzvFHb7IU6PcwDD/ o7FB1DVLuXb7OHB6GG2wlPezM7miGzQgfTph11o7D/LlO0V11iU/3xfG/I2stmtvh7TH +SMw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m5si6603180edq.498.2020.05.18.11.29.12; Mon, 18 May 2020 11:29:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730940AbgERS1M (ORCPT + 99 others); Mon, 18 May 2020 14:27:12 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:42900 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729729AbgERRoV (ORCPT ); Mon, 18 May 2020 13:44:21 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: eballetbo) with ESMTPSA id D2B0B2A1089 Subject: Re: [PATCH] drm/mediatek: Delete not used of_device_get_match_data To: matthias.bgg@kernel.org, chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org, Matthias Brugger , linux-mediatek@lists.infradead.org, linux-arm-kernel@lists.infradead.org References: <20200518112254.23692-1-matthias.bgg@kernel.org> From: Enric Balletbo i Serra Message-ID: <0b80dd39-a1b8-48db-61a6-631de41ad293@collabora.com> Date: Mon, 18 May 2020 19:44:17 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 MIME-Version: 1.0 In-Reply-To: <20200518112254.23692-1-matthias.bgg@kernel.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Matthias, On 18/5/20 13:22, matthias.bgg@kernel.org wrote: > 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. > > Signed-off-by: Matthias Brugger Reviewed-by: Enric Balletbo i Serra > --- > 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/mediatek/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 = of_device_get_match_data(dev); > private->mmsys_dev = dev->parent; > if (!private->mmsys_dev) { > dev_err(dev, "Failed to get MMSYS device\n"); >