Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp3377040ybt; Sat, 4 Jul 2020 15:22:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVKtaLfcFUjM+/KgaOBoOKBIv+f8PDwsCnI/0TvabdMMYHCKeuKddo4bx3sU7l2SJpcoru X-Received: by 2002:a17:906:1403:: with SMTP id p3mr29260781ejc.106.1593901323579; Sat, 04 Jul 2020 15:22:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593901323; cv=none; d=google.com; s=arc-20160816; b=uSTRfxq4A6wVcr0E6whzqPK0IGzRky7+3TRj4soHvhTN1st/H1S6ykUy4jxWGJezLy NVYPPaBhiJ6pRL4LCgErsnl+c7OaMl8gQvHWqGY7xstddoHmHDYOZnO2WdeUiOX2w2fO JCZkh2+YsgxHXyvZkX+DdN85JECpr7shEY43CevxYtQXR4RY3WI3xQ+9vMja8rr63LWo 6e0B1lCg2LVvxDNGWXMYOt5Q5U1hBBSD2fv2IJQ7Azgs92zxNv2UFhNSrg9Dyi0fJnrL SAXvxhxnDdO3r+9sqJSnVxfg3cje1jodfR33LcZQIq0oiS+lfGi/wK7b0/38NkfmH5qW bEYw== 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=z9FrQYFkoBcSUSprI578boyHlAVatlhbrUYJI4qyzWM=; b=YSBL5qTAhuBTrNAsfDRICJUr4IFWel/1zZ0/iuywlKGFcYaTBfuFFmZ5r3sxaC2GBI 63uAkNULX5Y245RijaJQ7Sa2m8n74G7MIO5Q+dRrkEYUeKIT6IX5kZ/587hX2+BeFWU3 l2zbKlYP7uvvwcTGDhfiSjNxx1qIbg4I7DevKUzIQHAtVXFyv9TE7xlt/yqujN3lIXba QSML9s4w12ckevszd0r0DjBvCgS5dQAuGrZur9+L/tWNmLkzK+8y+BkWV4UBOWmo4zx0 /Tdhcxzl62H5Ym3uTvX2xh2sAzd4HlMLk9y6lSjM5Rma1hJaojsb091MVRlzsV8UHHLd CacQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=se3OQJCl; 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 g4si10090303edq.459.2020.07.04.15.21.39; Sat, 04 Jul 2020 15:22:03 -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=se3OQJCl; 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 S1727985AbgGDWTW (ORCPT + 99 others); Sat, 4 Jul 2020 18:19:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:35132 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727929AbgGDWTV (ORCPT ); Sat, 4 Jul 2020 18:19:21 -0400 Received: from mail-ej1-f43.google.com (mail-ej1-f43.google.com [209.85.218.43]) (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 28AF620826 for ; Sat, 4 Jul 2020 22:19:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593901161; bh=9v1dX1d5CT4OlZG432LBpmp+z8QjBxiwBh7CgA1A544=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=se3OQJClKKjKhYoH9WhQiUxEFZX2L1NvaCCUMqtw7TdurqgGX58PSFP4Skgh6Vvju vh4aaV/eWxRDjkmOCifgaTNdIJMHSYciq6XCi2nR+4YsxXKzZYgzkWkdfIIR/oAscc tkMswjD4s1D410+EJomp69qFD7gFMMT8MZv//3+w= Received: by mail-ej1-f43.google.com with SMTP id w6so38400097ejq.6 for ; Sat, 04 Jul 2020 15:19:21 -0700 (PDT) X-Gm-Message-State: AOAM531jAZztFQacgBf+iZEBL7DMXMHiQS+i+MMbRwbXCxCLsTOxQHyM 0VrZoXyXsPD0FRU4E0crFUb12YEMk6uOQIkYIw== X-Received: by 2002:a17:906:856:: with SMTP id f22mr36036089ejd.245.1593901159756; Sat, 04 Jul 2020 15:19:19 -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: Sun, 5 Jul 2020 06:19:03 +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. 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. > > 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 >