From patchwork Tue Feb 6 05:21:46 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Umang Jain X-Patchwork-Id: 13546684 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 670FCC4828D for ; Tue, 6 Feb 2024 05:22:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=Al4Wp9FaN97MNyDx1/xfC25DMf3uI6FNPKHOhQONCU0=; b=MRhyul/GEhUuC0 3R9AInrswPZ9APaz0gKcIMVChAm203/9qg2Eeh75cOdJIY8dQE5pBkTC2X+6Bf+GmiMNU2LNbwo6m dAk6MJQXIe3/H5M8N1Tg4TiGe18uf4evgoSG0Mst0LfOtA+i38ahZgvdowVRYEE3Hl88yOQXzUSu7 cdbMo9lcsM15XmIK0AxeKUFQ+NudK1wqHU03UUDjB4PVighrFn0y4OI322PM74BY7jWmk3dn7wmbY v+f4yG3lFz3xLgm8UmQtrSbfJ8eVipZVEiW2sCyGTiJE9/dp5J3nvEZeqflu2zFm/YPQ/4e8chI/m Ss1SQAsC1Pa9xOgrB2Lg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXDuL-0000000672Z-3c2v; Tue, 06 Feb 2024 05:22:09 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rXDuJ-000000066zp-0hxT for linux-arm-kernel@lists.infradead.org; Tue, 06 Feb 2024 05:22:08 +0000 Received: from umang.jain (unknown [103.251.226.97]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3A157975; Tue, 6 Feb 2024 06:20:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1707196831; bh=9A41tRMvVT0HRkVDL46qeI1eqNXMwP9Vk2At0gdP17A=; h=From:To:Cc:Subject:Date:From; b=EdpKSXY54c/nF68oGCaOegx1rI3C4z46fUilCKS0NdFnj6/gLQR8vHCOVSl7yDJKO 243Kswou8Y+ahqb8rgAVe9O7GN5dxYRbZeCp2+AUSlPfy3/m6gxunRFKZx7fjFzuU/ E//MjvyYMPac1l9KkpyCM6tsamcFqpQ93E57HOF8= From: Umang Jain To: linux-arm-kernel@lists.infradead.org Cc: Lucas Stach , Luca Ceresoli , Adam Ford , Laurent Pinchart , Rob Herring , NXP Linux Team , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Liu Ying , Neil Armstrong , Robert Foss , Daniel Vetter , David Airlie , Umang Jain Subject: [PATCH] drm/imx: Replace of_device.h with explicit includes Date: Tue, 6 Feb 2024 10:51:46 +0530 Message-ID: <20240206052146.69779-1-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240205_212207_369336_151693E0 X-CRM114-Status: GOOD ( 10.72 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it as merged into the regular platform bus. As part of that merge prepping Arm DT support 13 years ago, they "temporarily" include each other. They also include platform_device.h and of.h. of_device.h isn't needed, but of.h is for of_node_put(). This fixes the following build errors: error: implicit declaration of function ‘platform_set_drvdata’ [-Werror=implicit-function-declaration] error: implicit declaration of function ‘of_node_put’ [-Werror=implicit-function-declaration] Fixes: 3075f087680b ("drm/imx: add driver for HDMI TX Parallel Video Interface") Signed-off-by: Umang Jain --- drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c index 962779dc539e..8a51a2ac8df1 100644 --- a/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c +++ b/drivers/gpu/drm/bridge/imx/imx8mp-hdmi-pvi.c @@ -8,9 +8,10 @@ #include #include #include -#include +#include #include #include +#include #define HTX_PVI_CTL 0x0 #define PVI_CTL_OP_VSYNC_POL BIT(18)