Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2640417ybk; Mon, 18 May 2020 04:25:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzBgiMqb5YT/5pjNHIcE5IXrKLkuPgQiNdkOPwUQD+BGvyPUSbOj5oA0CZYnrd++cftPyNA X-Received: by 2002:a17:906:8d0:: with SMTP id o16mr14750539eje.196.1589801145443; Mon, 18 May 2020 04:25:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589801145; cv=none; d=google.com; s=arc-20160816; b=mt2FRvqQLqgUt2KfrMS6kesg5w3xuYOQLk/3k4J5y4+4a2xrNUhK5Kuba3QTBkZhKe 8ZO3/YSbHicjLTAvWzMRFoibFPgsWiwplFwSGGPuvDtYBXdSHdIJlPzvByAod5EjwosW HlY6JHQpmR3/EzgOywXVybn81RfslxXvPGJgSVCHl9uWiXw47eFOqczFOjrGhVWcJjp6 3klXFmtgJLhl2lP3OKf6L1V/LDDzFClj+4t1LVpVVpyoHX63pIvhX7ZKu2lgQE+ziaMt V7KM+vR130RQ0qRORrZOg0G2fbvaUVf1nZiw+GeK4FTXF+Lz4zBdB2GHO72cQXApEc+u 0O+A== 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:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=43tbXlhW7fBmsGtFCgkEUqucaqtVcF3P9urhZSvHKkA=; b=yTo14Ih/NaN7PQWcCXeAp+DLEnhhKYG+gcUDy4ey6bnEEpWVIurjB0kJCzcUke9tLM 63qswpK8gTYy6JYnm7uL9wUr0458ZFvbQtahI4TTQEJt4cf6V7Fmp9eZtoE7qPMSM1+w 8TrsP9fEVflvEVjPwifiGjIihN+noJ+zCiklRSYy5dVYa4QIZ/s1QIIpGlHxGzEVygLq amkPxkJifUAFr7j0pB+grVI3yr6R2jibPrOFFrsfSedVMMHtygCce/Wpt/bZsld1VUHq vX/M0N29RDHNXeVv3jP5fsTN+HXmHFfD+EL6UcSjQnglPoVgOuP6vzSun/gs2zij/MDP W2ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=l3a2r826; 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 o16si6487688ejx.200.2020.05.18.04.25.20; Mon, 18 May 2020 04:25:45 -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=l3a2r826; 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 S1726813AbgERLXR (ORCPT + 99 others); Mon, 18 May 2020 07:23:17 -0400 Received: from mail.kernel.org ([198.145.29.99]:46560 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726557AbgERLXR (ORCPT ); Mon, 18 May 2020 07:23:17 -0400 Received: from ziggy.de (unknown [213.195.113.243]) (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 E34C7206D4; Mon, 18 May 2020 11:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1589800997; bh=UX5hVzE4RlHU3iDBRST21Nt0Qg+SmpVsaSQorMHrC0s=; h=From:To:Cc:Subject:Date:From; b=l3a2r826A4ELNWXZVsYarsVjGOrBdK2avwXVLH5up1ebMFSSDndfmDI6oGGUjXct5 DoGsL3Smh437oCwNPBt09u56feV9t6UK/Nx+r+MlMDnPPZG6r9C/eSupiHhLyZnctK RirMJT1/iWD+liNMDCkscrRG5h6d6zE+FK+UMZHs= From: matthias.bgg@kernel.org To: chunkuang.hu@kernel.org, p.zabel@pengutronix.de, airlied@linux.ie, daniel@ffwll.ch Cc: matthias.bgg@kernel.org, dri-devel@lists.freedesktop.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-kernel@vger.kernel.org, enric.balletbo@collabora.com, Matthias Brugger Subject: [PATCH] drm/mediatek: Delete not used of_device_get_match_data Date: Mon, 18 May 2020 13:22:54 +0200 Message-Id: <20200518112254.23692-1-matthias.bgg@kernel.org> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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"); -- 2.26.2